From: Daniel Drake Date: Thu, 17 Nov 2005 17:48:01 +0000 (-0800) Subject: [PATCH] usb-storage: Fix detection of kodak flash readers in shuttle_usbat driver X-Git-Tag: v2.6.15-rc2~49 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=8845add380854ffce5268714a093df8c80b4a6e2;p=~shefty%2Frdma-dev.git [PATCH] usb-storage: Fix detection of kodak flash readers in shuttle_usbat driver Peter Favrholdt reported that his Kodak flash device was getting detected as a CDROM, and he helped me track this down to the fact that the device takes a long time (approx 440ms!) to reset. This patch increases the delay to 500ms, which solves the problem. Signed-off-by: Daniel Drake Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/storage/shuttle_usbat.c b/drivers/usb/storage/shuttle_usbat.c index 33c55a6261b..fea176d7e79 100644 --- a/drivers/usb/storage/shuttle_usbat.c +++ b/drivers/usb/storage/shuttle_usbat.c @@ -853,7 +853,7 @@ static int usbat_identify_device(struct us_data *us, rc = usbat_device_reset(us); if (rc != USB_STOR_TRANSPORT_GOOD) return rc; - msleep(25); + msleep(500); /* * In attempt to distinguish between HP CDRW's and Flash readers, we now