Browse Source

Fix problems with SanDisk Corporation Cruzer Micro USB memory stick.

Bartlomiej Sieka 19 years ago
parent
commit
f88a0ae6d7
2 changed files with 6 additions and 0 deletions
  1. 2 0
      CHANGELOG
  2. 4 0
      common/usb_storage.c

+ 2 - 0
CHANGELOG

@@ -2,6 +2,8 @@
 Changes since U-Boot 1.1.4:
 Changes since U-Boot 1.1.4:
 ======================================================================
 ======================================================================
 
 
+* Fix problems with SanDisk Corporation Cruzer Micro USB memory stick.
+
 * MCC200 board: support console on any one of the Quad UART ports.
 * MCC200 board: support console on any one of the Quad UART ports.
 
 
 * Fix error in flash protection calculation on MCC200 board.
 * Fix error in flash protection calculation on MCC200 board.

+ 4 - 0
common/usb_storage.c

@@ -1139,6 +1139,10 @@ int usb_stor_get_info(struct usb_device *dev,struct us_data *ss,block_dev_desc_t
 	    /* USB007 Mini-USB2 Flash Drive */
 	    /* USB007 Mini-USB2 Flash Drive */
 	    (dev->descriptor.idVendor == 0x066f &&
 	    (dev->descriptor.idVendor == 0x066f &&
 	     dev->descriptor.idProduct == 0x2010)
 	     dev->descriptor.idProduct == 0x2010)
+	    ||
+	    /* SanDisk Corporation Cruzer Micro 20044318410546613953 */
+	    (dev->descriptor.idVendor == 0x0781 &&
+	     dev->descriptor.idProduct == 0x5151)
 	    )
 	    )
 		USB_STOR_PRINTF("usb_stor_get_info: skipping RESET..\n");
 		USB_STOR_PRINTF("usb_stor_get_info: skipping RESET..\n");
 	else
 	else