uas: Add US_FL_MAX_SECTORS_240 flag
authorHans de Goede <hdegoede@redhat.com>
Tue, 21 Apr 2015 09:20:31 +0000 (11:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2015 10:48:57 +0000 (12:48 +0200)
commitee136af4a064c2f61e2025873584d2c7ec93f4ae
tree5021e9e7d52d817f39695546f81509e929cf6ced
parenta5011d44f0e1117a6db14b19b57c51f8be5673a0
uas: Add US_FL_MAX_SECTORS_240 flag

The usb-storage driver sets max_sectors = 240 in its scsi-host template,
for uas we do not want to do that for all devices, but testing has shown
that some devices need it.

This commit adds a US_FL_MAX_SECTORS_240 flag for such devices, and
implements support for it in uas.c, while at it it also adds support
for US_FL_MAX_SECTORS_64 to uas.c.

Cc: stable@vger.kernel.org # 3.16
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/kernel-parameters.txt
drivers/usb/storage/uas.c
drivers/usb/storage/usb.c
include/linux/usb_usual.h