]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ata: libata: Print features also for ATAPI devices
authorNiklas Cassel <cassel@kernel.org>
Mon, 12 Jan 2026 12:20:51 +0000 (13:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:32 +0000 (10:27 +0100)
[ Upstream commit c8c6fb886f57d5bf71fb6de6334a143608d35707 ]

Commit d633b8a702ab ("libata: print feature list on device scan")
added a print of the features supported by the device for ATA_DEV_ATA and
ATA_DEV_ZAC devices, but not for ATA_DEV_ATAPI devices.

Fix this by printing the features also for ATAPI devices.

Before changes:
ata1.00: ATAPI: Slimtype DVD A  DU8AESH, 6C2M, max UDMA/133

After changes:
ata1.00: ATAPI: Slimtype DVD A  DU8AESH, 6C2M, max UDMA/133
ata1.00: Features: Dev-Attention HIPM DIPM

Fixes: d633b8a702ab ("libata: print feature list on device scan")
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Tested-by: Wolf <wolf@yoxt.cc>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/libata-core.c

index e51a27ae0a7d239e1161062eaef78f10e001e40a..d5e713f284b71d5bbde6e75e4a10de0459b14b34 100644 (file)
@@ -3049,6 +3049,9 @@ int ata_dev_configure(struct ata_device *dev)
                                     dma_dir_string);
 
                ata_dev_config_lpm(dev);
+
+               if (print_info)
+                       ata_dev_print_features(dev);
        }
 
        /* determine max_sectors */