summaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/usb.c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2020-12-09 16:26:39 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-21 13:27:06 +0100
commit4ad8fc6cce018467c50ae18a70636c062d0d6e81 (patch)
tree91737722dffc499855996c5e2aa21a56d8cf30b9 /drivers/usb/storage/usb.c
parent397d0ae4cb90bcec508f341adb64e1bdb5ce3122 (diff)
downloadlinux-stable-4ad8fc6cce018467c50ae18a70636c062d0d6e81.tar.gz
linux-stable-4ad8fc6cce018467c50ae18a70636c062d0d6e81.tar.bz2
linux-stable-4ad8fc6cce018467c50ae18a70636c062d0d6e81.zip
USB: UAS: introduce a quirk to set no_write_same
commit 8010622c86ca5bb44bc98492f5968726fc7c7a21 upstream. UAS does not share the pessimistic assumption storage is making that devices cannot deal with WRITE_SAME. A few devices supported by UAS, are reported to not deal well with WRITE_SAME. Those need a quirk. Add it to the device that needs it. Reported-by: David C. Partridge <david.partridge@perdrix.co.uk> Signed-off-by: Oliver Neukum <oneukum@suse.com> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20201209152639.9195-1-oneukum@suse.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/storage/usb.c')
-rw-r--r--drivers/usb/storage/usb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index 9a79cd9762f3..2349dfa3b176 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -541,6 +541,9 @@ void usb_stor_adjust_quirks(struct usb_device *udev, unsigned long *fflags)
case 'j':
f |= US_FL_NO_REPORT_LUNS;
break;
+ case 'k':
+ f |= US_FL_NO_SAME;
+ break;
case 'l':
f |= US_FL_NOT_LOCKABLE;
break;