diff options
| author | Giuseppe Piscitelli <ooonea@gmail.com> | 2026-10-26 21:25:11 +0100 |
|---|---|---|
| committer | Niklas Cassel <cassel@kernel.org> | 2026-11-02 11:43:28 +0100 |
| commit | ec585ac78742527f80495dd8f451dcda7e9e7f59 (patch) | |
| tree | f18c6af448a930631fea9bcd31bd2956a7c950f6 /tools/lib/python | |
| parent | 597be4104c4045d73979c05307fa5fc778d1dbde (diff) | |
ata: libata-core: Check device support before querying power state
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@gmail.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://lore.kernel.org/r/20261026202513.669084-1-ooonea@gmail.com
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
