On Wed, 19 Nov 2025 15:13:14 +0100, Niklas Cassel wrote:
Commit cf3fc037623c ("ata: libata-scsi: Fix ata_to_sense_error() status handling") fixed ata_to_sense_error() to properly generate sense key ABORTED COMMAND (without any additional sense code), instead of the previous bogus sense key ILLEGAL REQUEST with the additional sense code UNALIGNED WRITE COMMAND, for a failed command.
However, this broke suspend for Security locked drives (drives that have Security enabled, and have not been Security unlocked by boot firmware).
[...]
Applied to libata/linux.git (for-6.18-fixes), thanks!
[1/2] ata: libata-scsi: Fix system suspend for a security locked drive https://git.kernel.org/libata/linux/c/b1189068 [2/2] ata: libata-core: Set capacity to zero for a security locked drive https://git.kernel.org/libata/linux/c/91842ed8
Kind regards, Niklas