Re: [PATCH] ata: libata-core: Check device support before querying power state
From: Niklas Cassel
Date: Tue Oct 27 2026 - 16:37:56 EST
On Mon, Oct 26, 2026 at 09:25:11PM +0100, Giuseppe Piscitelli wrote:
> The standby path queries the power state before checking whether the
> device accepts ATA power-management commands. This sends CHECK POWER MODE
> to ATAPI devices, including the QEMU DVD-ROM, which rejects it.
>
> Run the existing taskfile initialization and device-class check first,
> as the active-power path already does.
>
> Fixes: 9cec467d0502 ("ata: libata-core: Do not call ata_dev_power_set_standby() twice")
> Signed-off-by: Giuseppe Piscitelli <ooonea@xxxxxxxxx>
> ---
Reviewed-by: Niklas Cassel <cassel@xxxxxxxxxx>