]> err.no Git - linux-2.6/commitdiff
[PATCH] usb-storage: Fix detection of kodak flash readers in shuttle_usbat driver
authorDaniel Drake <dsd@gentoo.org>
Thu, 17 Nov 2005 17:48:01 +0000 (09:48 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 17 Nov 2005 19:29:54 +0000 (11:29 -0800)
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 <dsd@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/storage/shuttle_usbat.c

index 33c55a6261bba4a9a5cc14656d265a078f9523a6..fea176d7e79a3bcb5540df2cc7012944c3f191cc 100644 (file)
@@ -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