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 <[EMAIL PROTECTED]>


--- linux-2.6.15-rc1/drivers/usb/storage/shuttle_usbat.c.orig	2005-11-12 17:48:28.000000000 +0000
+++ linux-2.6.15-rc1/drivers/usb/storage/shuttle_usbat.c	2005-11-12 17:48:38.000000000 +0000
@@ -853,7 +853,7 @@ static int usbat_identify_device(struct 
 	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

Reply via email to