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, 13 Nov 2013 03:05:29 +0000 (12:05 +0900)
commitb910ef250be4f872e383c62d1dfc40641b6f1c5b
tree40a87e0b7c43a5334cfc6effca29aef2ea27f016
parent4e77f7f1261f65cff06918bc5e66d02a418fc842
usb-storage: add quirk for mandatory READ_CAPACITY_16

commit 32c37fc30c52508711ea6a108cfd5855b8a07176 upstream.

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>
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