Skip to contentSkip to conversation

Remove unnecessary reset request in usb_stor_get_info

PATCH New Erik Hansen 2 participants 3 messages Mar 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unnecessary reset request in usb_stor_get_info

The reset request in usb_stor_get_info is causing issues with some usb sticks. Some of these sticks vendor_id/product_id have been hardcoded to not reset but better is to remove the reset altogether. It is not needed.

---
 common/usb_storage.c |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)
common/usb_storage.c +0 -25
index 1e6cd6a..6963e6d 100644
@@ -1346,31 +1346,6 @@ int usb_stor_get_info(struct usb_device *dev, struct us_data *ss,
 	unsigned long *capacity, *blksz;
 	ccb *pccb = &usb_ccb;
 
-	/* for some reasons a couple of devices would not survive this reset */
-	if (
-	    /* Sony USM256E */
-	    (dev->descriptor.idVendor == 0x054c &&
-	     dev->descriptor.idProduct == 0x019e)
-	    ||
-	    /* USB007 Mini-USB2 Flash Drive */
-	    (dev->descriptor.idVendor == 0x066f &&
-	     dev->descriptor.idProduct == 0x2010)
-	    ||
-	    /* SanDisk Corporation Cruzer Micro 20044318410546613953 */
-	    (dev->descriptor.idVendor == 0x0781 &&
-	     dev->descriptor.idProduct == 0x5151)
-	    ||
-	    /*
-	     * SanDisk Corporation U3 Cruzer Micro 1/4GB
-	     * Flash Drive 000016244373FFB4
-	     */
-	    (dev->descriptor.idVendor == 0x0781 &&
-	     dev->descriptor.idProduct == 0x5406)
-	    )
-		USB_STOR_PRINTF("usb_stor_get_info: skipping RESET..\n");
-	else
-		ss->transport_reset(ss);
-
 	pccb->pdata = usb_stor_buf;
 
 	dev_desc->target = dev->devnum;
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 Remove unnecessary reset request in usb_stor_get_info

Dear Erik Hansen,

Quoted 6 lines · In message <[email protected]> you wrote:

The reset request in usb_stor_get_info is causing issues with some usb sticks. Some of these sticks vendor_id/product_id have been hardcoded to not reset but better is to remove the reset altogether. It is not needed.

---
 common/usb_storage.c |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)

Please do NOT post multiple versions of patches without explicitly marking these as new versions and not without adding a list of changes.

Make sure to read
http://www.denx.de/wiki/view/U-Boot/Patches#Sending_updated_patch_versions

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is not best to swap horses while crossing the river.
- Abraham Lincoln
#2 lore raw

PATCH 1/1 Remove unnecessary reset request in usb_stor_get_info

In reply to Erik Hansen

Dear Erik Hansen,

In message <[email protected]> you wrote:
...

Quoted 1 line

Reply-to: qeha at ws038732.localdomain

Please make sure to fix your broken mailer setup!!!

NEVER add such crap to any messages that leave your systems.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Gew?hnlich glaubt der Mensch,  wenn er nur Worte h?rt,  es m?sse sich
dabei doch auch was denken lassen.                 -- Goethe, Faust I