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:
parent
0f1d44dba2
commit
1c63993e05
2 changed files with 5 additions and 4 deletions
|
@ -69,9 +69,9 @@ struct dev_info_t
|
||||||
|
|
||||||
struct dev_info_t g_dev_info[] =
|
struct dev_info_t g_dev_info[] =
|
||||||
{
|
{
|
||||||
{0x066f, 0x3780, 1024, HID_DEVICE}, /* i.MX233 / STMP3780 */
|
{0x066f, 0x3780, 0, HID_DEVICE}, /* i.MX233 / STMP3780 */
|
||||||
{0x066f, 0x3770, 48, HID_DEVICE}, /* STMP3770 */
|
{0x066f, 0x3770, 0, HID_DEVICE}, /* STMP3770 */
|
||||||
{0x15A2, 0x004F, 1024, HID_DEVICE}, /* i.MX28 */
|
{0x15A2, 0x004F, 0, HID_DEVICE}, /* i.MX28 */
|
||||||
{0x066f, 0x3600, 4096, RECOVERY_DEVICE}, /* STMP36xx */
|
{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)
|
static bool is_recovery_dev(struct libusb_config_descriptor *desc)
|
||||||
{
|
{
|
||||||
|
(void) desc;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue