linux/drivers/usb/storage
Mark Knibbs 55dc68c012 USB: storage: Reject bogus max LUN values
Some mass storage devices return a bogus value in response to a Get Max LUN
request. The Iomega Jaz USB Adapter responds with 0x10, hence my recent
patch to use the US_FL_SINGLE_LUN quirk for it.

The USB MSC Bulk Only Transport document says "The device shall return one
byte of data that contains the maximum LUN supported by the device."

Since the LUN field in the command block wrapper is only 4 bits wide, it
might be helpful to report too-large LUN values in the kernel log, and
assume max LUN is actually 0. That could get some devices which currently
need the US_FL_SINGLE_LUN quirk to work.

Signed-off-by: Mark Knibbs <markk@clara.co.uk>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-07 08:56:05 -08:00
..
alauda.c USB: storage: use %*ph specifier to dump small buffers 2014-09-23 22:15:18 -07:00
cypress_atacb.c
datafab.c
debug.c usb: storage: Convert usb_stor_dbg to return void 2014-11-03 15:38:17 -08:00
debug.h usb: storage: Convert usb_stor_dbg to return void 2014-11-03 15:38:17 -08:00
ene_ub6250.c
freecom.c
initializers.c storage: Replace magic number with define in usb_stor_euscsi_init() 2014-09-23 22:29:27 -07:00
initializers.h
isd200.c
jumpshot.c
karma.c
Kconfig SCSI misc on 20140806 2014-08-06 20:10:32 -07:00
Makefile
onetouch.c
option_ms.c
option_ms.h
protocol.c
protocol.h
realtek_cr.c usb: Fixed a few typos 2014-09-23 22:15:18 -07:00
scsiglue.c usb: Fixed a few typos 2014-09-23 22:15:18 -07:00
scsiglue.h
sddr09.c USB: storage: use %*ph specifier to dump small buffers 2014-09-23 22:15:18 -07:00
sddr55.c
shuttle_usbat.c
sierra_ms.c
sierra_ms.h
transport.c USB: storage: Reject bogus max LUN values 2014-11-07 08:56:05 -08:00
transport.h
uas-detect.h uas: Add missing le16_to_cpu calls to asm1051 / asm1053 usb-id check 2014-09-11 14:21:43 -07:00
uas.c uas: Make uas work with blk-mq 2014-11-03 15:34:00 -08:00
unusual_alauda.h
unusual_cypress.h
unusual_datafab.h
unusual_devs.h storage: Add quirk for another SCM-based USB-SCSI converter 2014-09-23 22:29:27 -07:00
unusual_ene_ub6250.h
unusual_freecom.h
unusual_isd200.h
unusual_jumpshot.h
unusual_karma.h
unusual_onetouch.h
unusual_realtek.h
unusual_sddr09.h
unusual_sddr55.h
unusual_uas.h uas: Add another ASM1051 usb-id to the uas blacklist 2014-09-23 21:40:48 -07:00
unusual_usbat.h
usb.c USB patches for 3.18-rc1 2014-10-08 06:47:31 -04:00
usb.h
usual-tables.c