浏览代码

usb_storage: do not reset SanDisk Corporation U3 Cruzer Micro USB thumb drive

The SanDisk Corporation U3 Cruzer Micro 1/4GB Flash Drive 000016244373FFB4
does not like to be reset, so check for it.

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
Bryan Wu 16 年之前
父节点
当前提交
14e4111cda
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      common/usb_storage.c

+ 7 - 0
common/usb_storage.c

@@ -1235,6 +1235,13 @@ int usb_stor_get_info(struct usb_device *dev, struct us_data *ss,
 	    /* 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