WIP: usb-storage,uas: enable security commands for USB-attached storage
This patch enables security commands (currently mostly OPAL hardware
encryption) for UAS and usb-storage drivers.
The SCSI layer uses security commands for the initial OPAL support
check (discovery command) and for in-kernel sed-ioctl interface.
Some adapters support these commands, but firmware can be buggy or
implemented incorrectly; the patch also adds a new quirk IGNORE_OPAL
to disable security commands for particular devices.
If adapters do not implement needed commands (ATA-12 pass-thru),
the commands are rejected, and OPAL support remains disabled.
(This is how it already works if OPAL command is sent from userspace
directly, like in sedutils.)
Signed-off-by: Milan Broz <gmazyland@gmail.com>
5 files changed