1
0
Fork 0
forked from len0rd/rockbox

imxtools/sbtools: always probe report size for HID recovery mode

Some older versions of the ROM (TA3 for example), use a 64 byte report size
instead of 1024, so hardcoding 1024 is just a bad idea.

Change-Id: I720c4465cfe2f519bffa307175614bba58766dce
This commit is contained in:
Amaury Pouly 2013-10-09 13:05:43 +02:00
parent 0f1d44dba2
commit 1c63993e05
2 changed files with 5 additions and 4 deletions

View file

@ -69,9 +69,9 @@ struct dev_info_t
struct dev_info_t g_dev_info[] =
{
{0x066f, 0x3780, 1024, HID_DEVICE}, /* i.MX233 / STMP3780 */
{0x066f, 0x3770, 48, HID_DEVICE}, /* STMP3770 */
{0x15A2, 0x004F, 1024, HID_DEVICE}, /* i.MX28 */
{0x066f, 0x3780, 0, HID_DEVICE}, /* i.MX233 / STMP3780 */
{0x066f, 0x3770, 0, HID_DEVICE}, /* STMP3770 */
{0x15A2, 0x004F, 0, HID_DEVICE}, /* i.MX28 */
{0x066f, 0x3600, 4096, RECOVERY_DEVICE}, /* STMP36xx */
};
@ -246,6 +246,7 @@ static bool is_hid_dev(struct libusb_config_descriptor *desc)
static bool is_recovery_dev(struct libusb_config_descriptor *desc)
{
(void) desc;
return false;
}