Home Home > GIT Browse > stable
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-01-18 07:53:27 +0100
committerJiri Slaby <jslaby@suse.cz>2019-01-18 07:53:35 +0100
commit104b193df89aa240b11e9fa8161ca57475fb6bd5 (patch)
tree16686f278213cecd49aacd4c3644fe798369c136
parentcd0a52d5ffa04da0365f2b31eda5d59ea9a635a5 (diff)
USB: storage: add quirk for SMI SM3350 (bnc#1012628).
-rw-r--r--patches.kernel.org/4.20.3-025-USB-storage-add-quirk-for-SMI-SM3350.patch50
-rw-r--r--series.conf1
2 files changed, 51 insertions, 0 deletions
diff --git a/patches.kernel.org/4.20.3-025-USB-storage-add-quirk-for-SMI-SM3350.patch b/patches.kernel.org/4.20.3-025-USB-storage-add-quirk-for-SMI-SM3350.patch
new file mode 100644
index 0000000000..840e855e7c
--- /dev/null
+++ b/patches.kernel.org/4.20.3-025-USB-storage-add-quirk-for-SMI-SM3350.patch
@@ -0,0 +1,50 @@
+From: Icenowy Zheng <icenowy@aosc.io>
+Date: Thu, 3 Jan 2019 11:26:18 +0800
+Subject: [PATCH] USB: storage: add quirk for SMI SM3350
+References: bnc#1012628
+Patch-mainline: 4.20.3
+Git-commit: 0a99cc4b8ee83885ab9f097a3737d1ab28455ac0
+
+commit 0a99cc4b8ee83885ab9f097a3737d1ab28455ac0 upstream.
+
+The SMI SM3350 USB-UFS bridge controller cannot handle long sense request
+correctly and will make the chip refuse to do read/write when requested
+long sense.
+
+Add a bad sense quirk for it.
+
+Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
+Cc: stable <stable@vger.kernel.org>
+Acked-by: Alan Stern <stern@rowland.harvard.edu>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Signed-off-by: Jiri Slaby <jslaby@suse.cz>
+---
+ drivers/usb/storage/unusual_devs.h | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
+index f7f83b21dc74..ea0d27a94afe 100644
+--- a/drivers/usb/storage/unusual_devs.h
++++ b/drivers/usb/storage/unusual_devs.h
+@@ -1265,6 +1265,18 @@ UNUSUAL_DEV( 0x090c, 0x1132, 0x0000, 0xffff,
+ USB_SC_DEVICE, USB_PR_DEVICE, NULL,
+ US_FL_FIX_CAPACITY ),
+
++/*
++ * Reported by Icenowy Zheng <icenowy@aosc.io>
++ * The SMI SM3350 USB-UFS bridge controller will enter a wrong state
++ * that do not process read/write command if a long sense is requested,
++ * so force to use 18-byte sense.
++ */
++UNUSUAL_DEV( 0x090c, 0x3350, 0x0000, 0xffff,
++ "SMI",
++ "SM3350 UFS-to-USB-Mass-Storage bridge",
++ USB_SC_DEVICE, USB_PR_DEVICE, NULL,
++ US_FL_BAD_SENSE ),
++
+ /*
+ * Reported by Paul Hartman <paul.hartman+linux@gmail.com>
+ * This card reader returns "Illegal Request, Logical Block Address
+--
+2.20.1
+
diff --git a/series.conf b/series.conf
index 0ff39583eb..fbebc8b138 100644
--- a/series.conf
+++ b/series.conf
@@ -262,6 +262,7 @@
patches.kernel.org/4.20.3-022-ARM-davinci-da830-evm-fix-label-names-in-GPIO-.patch
patches.kernel.org/4.20.3-023-usb-cdc-acm-send-ZLP-for-Telit-3G-Intel-based-.patch
patches.kernel.org/4.20.3-024-USB-storage-don-t-insert-sane-sense-for-SPC3-w.patch
+ patches.kernel.org/4.20.3-025-USB-storage-add-quirk-for-SMI-SM3350.patch
########################################################
# Build fixes that apply to the vanilla kernel too.