mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] USB Storage quirk for SMI SM3350
@ 2018-12-27 14:34 Icenowy Zheng
  2018-12-27 14:34 ` [PATCH 1/2] USB: storage: don't insert sane sense for SPC3+ when bad sense specified Icenowy Zheng
  2018-12-27 14:34 ` [PATCH 2/2] USB: storage: add quirk for SMI SM3350 Icenowy Zheng
  0 siblings, 2 replies; 6+ messages in thread
From: Icenowy Zheng @ 2018-12-27 14:34 UTC (permalink / raw)
  To: Alan Stern, Greg Kroah-Hartman, linux-usb, usb-storage, linux-kernel
  Cc: Icenowy Zheng

SMI SM3350 UFS-USB bridge controller cannot handle REQUEST SENSE command
with long sense (96-bytes) well, and will even trap the controller into
a state that refuses to do read/write command.

Currently Linux uncondintionally set US_FL_SANE_SENSE for devices
claiming SPC3+, which makes simply add US_FL_BAD_SENSE for SM3350 fail
(as it claims SPC4).

Fix this conflicting quirk issue, and add the quirk for SM3350.

Icenowy Zheng (2):
  USB: storage: don't insert sane sense for SPC3+ when bad sense
    specified
  USB: storage: add quirk for SMI SM3350

 drivers/usb/storage/scsiglue.c     |  3 ++-
 drivers/usb/storage/unusual_devs.h | 12 ++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

-- 
2.18.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-28 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-27 14:34 [PATCH 0/2] USB Storage quirk for SMI SM3350 Icenowy Zheng
2018-12-27 14:34 ` [PATCH 1/2] USB: storage: don't insert sane sense for SPC3+ when bad sense specified Icenowy Zheng
2018-12-27 14:38   ` Icenowy Zheng
2018-12-28 16:00   ` Alan Stern
2018-12-27 14:34 ` [PATCH 2/2] USB: storage: add quirk for SMI SM3350 Icenowy Zheng
2018-12-27 14:38   ` Icenowy Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®