Skip to content

Commit

Permalink
[PATCH] usb-storage: Fix detection of kodak flash readers in shuttle_…
Browse files Browse the repository at this point in the history
…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 <dsd@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Daniel Drake authored and Linus Torvalds committed Nov 17, 2005
1 parent 9142d59 commit 8845add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/storage/shuttle_usbat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8845add

Please sign in to comment.