From 1c63993e05d177a0793b02ee0cd5762bb293e86c Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 9 Oct 2013 13:05:43 +0200 Subject: 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 --- utils/hwstub/stub/stmp/Makefile | 2 +- utils/imxtools/sbtools/sbloader.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/utils/hwstub/stub/stmp/Makefile b/utils/hwstub/stub/stmp/Makefile index 3ac7e3bbd4..c06242aad5 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 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; } -- cgit v1.2.3