]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: storage: raise timeout in usb_stor_Bulk_max_lun
authorGiacomo Lozito <james@develia.org>
Mon, 13 Jul 2009 21:23:33 +0000 (23:23 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Aug 2009 21:18:26 +0000 (14:18 -0700)
commit9b32c6242593c108aec7d6f9fe9f74cc199f9038
treec77db4f9ef1b132ef697d0ac69c33bd3688e7dff
parent21081bf8b7ee03472c941e38db3d1b7ffa778cac
USB: storage: raise timeout in usb_stor_Bulk_max_lun

commit 7a777919bbeec3eac1d7904a728a60e9c2bb9c67 upstream.

Requests to get max LUN, for certain USB storage devices, require a
longer timeout before a correct reply is returned. This happens for a
Realtek USB Card Reader (0bda:0152), which has a max LUN of 3 but is set
to 0, thus losing functionality, because of the timeout occurring too
quickly.

Raising the timeout value fixes the issue and might help other devices
to return a correct max LUN value as well.

Signed-off-by: Giacomo Lozito <james@develia.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/transport.c