summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/sbtools
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-10-09 13:05:43 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-10-09 13:05:43 +0200
commit1c63993e05d177a0793b02ee0cd5762bb293e86c (patch)
treec5ac471908321f4b3d30e66605c055402978fb46 /utils/imxtools/sbtools
parent0f1d44dba2e83776fa40cd607102f968d1ef79a8 (diff)
downloadrockbox-1c63993e05d177a0793b02ee0cd5762bb293e86c.tar.gz
rockbox-1c63993e05d177a0793b02ee0cd5762bb293e86c.tar.bz2
rockbox-1c63993e05d177a0793b02ee0cd5762bb293e86c.zip
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
Diffstat (limited to 'utils/imxtools/sbtools')
-rw-r--r--utils/imxtools/sbtools/sbloader.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/imxtools/sbtools/sbloader.c b/utils/imxtools/sbtools/sbloader.c
index 1a241ba551..91c4fc952f 100644
--- a/utils/imxtools/sbtools/sbloader.c
+++ b/utils/imxtools/sbtools/sbloader.c
@@ -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;
}