USB: uas and storage: Add US_FL_BROKEN_FUA for another JMicron JMS567 ID
authorDavid Kozub <zub@linux.fjfi.cvut.cz>
Tue, 5 Dec 2017 21:40:04 +0000 (22:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2017 16:31:20 +0000 (17:31 +0100)
commit62354454625741f0569c2cbe45b2d192f8fd258e
tree00adfeb9cfab08137b5ac8ec0e08633ed2041cd3
parentbd3486ded7a0c313a6575343e6c2b21d14476645
USB: uas and storage: Add US_FL_BROKEN_FUA for another JMicron JMS567 ID

There is another JMS567-based USB3 UAS enclosure (152d:0578) that fails
with the following error:

[sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[sda] tag#0 Sense Key : Illegal Request [current]
[sda] tag#0 Add. Sense: Invalid field in cdb

The issue occurs both with UAS (occasionally) and mass storage
(immediately after mounting a FS on a disk in the enclosure).

Enabling US_FL_BROKEN_FUA quirk solves this issue.

This patch adds an UNUSUAL_DEV with US_FL_BROKEN_FUA for the enclosure
for both UAS and mass storage.

Signed-off-by: David Kozub <zub@linux.fjfi.cvut.cz>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/unusual_devs.h
drivers/usb/storage/unusual_uas.h