Re: [PATCH v1 6/9] ata: libata-scsi: add support for the GET PHYSICAL ELEMENT STATUS command

Hannes Reinecke <[email protected]> Mon, 13 Jul 2026 11:38:16 +0200
Newsgroups gmane.linux.scsi,gmane.linux.ide
Message-ID <[email protected]>
On 7/6/26 8:56 AM, Damien Le Moal wrote:
> Define the translation for the GET PHYSICAL ELEMENT STATUS command
> (SERVICE ACTION IN command with service action
> SAI_GET_PHYSICAL_ELEMENT_STATUS) into the ATA command
> ATA_CMD_GET_PHYS_ELEMENT_STATUS with the new function
> ata_scsi_get_phys_element_status_xlat(). The reply of this function also
> needs translation from little endian to big endian. This is done with the
> completion callback ata_scsi_get_phys_element_status_complete().
> 
> The array of supported commands ata_supported_cmds is modified to add a
> new entry for this command. ata_scsi_cmd_is_supported() is also modified
> to correctly handle this new entry depending on the target device flag
> ATA_DFLAG_DEPOP being set.
> 
> Signed-off-by: Damien Le Moal <[email protected]>
> ---
>   drivers/ata/libata-scsi.c | 141 ++++++++++++++++++++++++++++++++++++++
>   include/linux/ata.h       |   1 +
>   2 files changed, 142 insertions(+)
> 
Reviewed-by: Hannes Reinecke <[email protected]>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
[email protected]                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich