[U-Boot] "usb reset" issue with some pen drives which work well in Linux/Windows
Debashish Rath
Debashish.Rath at tridentmicro.com
Mon Nov 29 13:18:27 CET 2010
Dear Mr. Wolfgang,
Please find the patch for the same. This is ok or I have to prepare a different mail and send the patch as an attachment.
Regards
Debashish Rath
--------------------------PATCH START--------------
diff -Naur u-boot-2010.09/common/usb_storage.c u-boot-2010.09_usb_ms_reset/common/usb_storage.c
--- u-boot-2010.09/common/usb_storage.c 2010-09-29 02:50:55.000000000 +0530
+++ u-boot-2010.09_usb_ms_reset/common/usb_storage.c 2010-11-29 17:16:01.825110000 +0530
@@ -1335,6 +1335,13 @@
*/
(dev->descriptor.idVendor == 0x0781 &&
dev->descriptor.idProduct == 0x5406)
+ ||
+ /*
+ * Standard Disk Drives
+ * USB Flash Memory
+ */
+ (dev->descriptor.idVendor == 0x0204 &&
+ dev->descriptor.idProduct == 0x6025)
)
USB_STOR_PRINTF("usb_stor_get_info: skipping RESET..\n");
else
------------------------PATCH END-----------------------------
-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Monday, November 29, 2010 5:02 PM
To: Debashish Rath
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] "usb reset" issue with some pen drives which work well in Linux/Windows
Dear Debashish Rath,
In message <24A35C16137FE049838D189639DD567F0846F87C at eu-exh-02.EU.TRID.COM> you wrote:
>
> I found the issue.
> In usb_stor_get_info function of common/usb_storage.c I add the following:
> (dev->descriptor.idVendor =3D=3D 0x0204 &&
> dev->descriptor.idProduct =3D=3D 0x6025)
>
> to skip the ss->transport_reset(ss);. This I took out from the linux kernel=
> code.
>
> Now its working for me.
Congratulations. Can you now please submit this change as a proper
patch so others can benefit from it, too?
Please see here for help: http://www.denx.de/wiki/U-Boot/Patches
Best regards,
Wolfgang Denk
--
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
Microsoft Multitasking:
several applications can crash at the same time.
More information about the U-Boot
mailing list