diff options
| author | Icenowy Zheng <icenowy@aosc.io> | 2019-01-02 22:26:18 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-07 11:23:30 -0500 |
| commit | 0a99cc4b8ee83885ab9f097a3737d1ab28455ac0 (patch) | |
| tree | 825035291f4fb1fc2022ef695d04298fcd4fa984 /drivers/usb/storage | |
| parent | c5603d2fdb424849360fe7e3f8c1befc97571b8c (diff) | |
USB: storage: add quirk for SMI SM3350
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>
Diffstat (limited to 'drivers/usb/storage')
| -rw-r--r-- | drivers/usb/storage/unusual_devs.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 | |||
| @@ -1266,6 +1266,18 @@ UNUSUAL_DEV( 0x090c, 0x1132, 0x0000, 0xffff, | |||
| 1266 | US_FL_FIX_CAPACITY ), | 1266 | US_FL_FIX_CAPACITY ), |
| 1267 | 1267 | ||
| 1268 | /* | 1268 | /* |
| 1269 | * Reported by Icenowy Zheng <icenowy@aosc.io> | ||
| 1270 | * The SMI SM3350 USB-UFS bridge controller will enter a wrong state | ||
| 1271 | * that do not process read/write command if a long sense is requested, | ||
| 1272 | * so force to use 18-byte sense. | ||
| 1273 | */ | ||
| 1274 | UNUSUAL_DEV( 0x090c, 0x3350, 0x0000, 0xffff, | ||
| 1275 | "SMI", | ||
| 1276 | "SM3350 UFS-to-USB-Mass-Storage bridge", | ||
| 1277 | USB_SC_DEVICE, USB_PR_DEVICE, NULL, | ||
| 1278 | US_FL_BAD_SENSE ), | ||
| 1279 | |||
| 1280 | /* | ||
| 1269 | * Reported by Paul Hartman <paul.hartman+linux@gmail.com> | 1281 | * Reported by Paul Hartman <paul.hartman+linux@gmail.com> |
| 1270 | * This card reader returns "Illegal Request, Logical Block Address | 1282 | * This card reader returns "Illegal Request, Logical Block Address |
| 1271 | * Out of Range" for the first READ(10) after a new card is inserted. | 1283 | * Out of Range" for the first READ(10) after a new card is inserted. |
