summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorErik Hansen <erik@makarta.com>2011-03-24 15:06:24 +0100
committerRemy Bohmer <linux@bohmer.net>2011-04-02 09:38:24 +0200
commit56887e27aee57db866a877e60a9141caa32d4636 (patch)
tree0225ffdc09e33b91cf76fe55fe021a88dce0ee25 /common
parent081b59e4536d050ed5dc3c16ec5c65d16c0edc94 (diff)
downloadu-boot-imx-56887e27aee57db866a877e60a9141caa32d4636.zip
u-boot-imx-56887e27aee57db866a877e60a9141caa32d4636.tar.gz
u-boot-imx-56887e27aee57db866a877e60a9141caa32d4636.tar.bz2
Remove unnecessary reset 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. Signed-off-by: Erik Hansen <erik@makarta.com>
Diffstat (limited to 'common')
-rw-r--r--common/usb_storage.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/common/usb_storage.c b/common/usb_storage.c
index 1e6cd6a..6963e6d 100644
--- a/common/usb_storage.c
+++ b/common/usb_storage.c
@@ -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;