usb-storage: add quirk for mandatory READ_CAPACITY_16
authorOliver Neukum <oneukum@suse.de>
Mon, 14 Oct 2013 13:24:55 +0000 (15:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Oct 2013 20:32:04 +0000 (13:32 -0700)
commit32c37fc30c52508711ea6a108cfd5855b8a07176
tree0e27849089be2e0f12bbcab665062e2f7d2454a0
parentfd8573f5828873343903215f203f14dc82de397c
usb-storage: add quirk for mandatory READ_CAPACITY_16

Some USB drive enclosures do not correctly report an
overflow condition if they hold a drive with a capacity
over 2TB and are confronted with a READ_CAPACITY_10.
They answer with their capacity modulo 2TB.
The generic layer cannot cope with that. It must be told
to use READ_CAPACITY_16 from the beginning.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/scsiglue.c
drivers/usb/storage/unusual_devs.h
include/linux/usb_usual.h