summaryrefslogtreecommitdiff
path: root/utils
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
parent0f1d44dba2e83776fa40cd607102f968d1ef79a8 (diff)
downloadrockbox-1c63993e05d177a0793b02ee0cd5762bb293e86c.zip
rockbox-1c63993e05d177a0793b02ee0cd5762bb293e86c.tar.gz
rockbox-1c63993e05d177a0793b02ee0cd5762bb293e86c.tar.bz2
rockbox-1c63993e05d177a0793b02ee0cd5762bb293e86c.tar.xz
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')
-rw-r--r--utils/hwstub/stub/stmp/Makefile2
-rw-r--r--utils/imxtools/sbtools/sbloader.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/utils/hwstub/stub/stmp/Makefile b/utils/hwstub/stub/stmp/Makefile
index 3ac7e3b..c06242a 100644
--- a/utils/hwstub/stub/stmp/Makefile
+++ b/utils/hwstub/stub/stmp/Makefile
@@ -17,4 +17,4 @@ include ../hwstub.make
$(BUILD_DIR)/hwstub.sb: $(EXEC_BIN)
$(call PRINTS,SBTOELF $(@F))
- $(SILENT)$(SBTOELF) -z -c hwstub.db -o $@ $< \ No newline at end of file
+ $(SILENT)$(SBTOELF) -z -c hwstub.db -o $@ $<
diff --git a/utils/imxtools/sbtools/sbloader.c b/utils/imxtools/sbtools/sbloader.c
index 1a241ba..91c4fc9 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;
}