]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:08:06 +0000 (12:08 +0900)
commit3ee7ef780ea3605dd317c6702b50d4a818e64a63
tree639d9b6b8828426e0b46ae9b3c75aa921375f4e4
parenta368a29579b50aa3d78d8b2d9737dd5e32f55a43
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