aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorNiklas Cassel <cassel@kernel.org>2024-01-11 17:57:44 +0100
committerNiklas Cassel <cassel@kernel.org>2024-01-22 22:26:03 +0100
commit73ae7e1c7644a8c33ba526302a10267cdbc249f8 (patch)
treead1ef9a9b5dae33204b5fad2f2656acf60e1f2c2 /include/linux/libata.h
parentLinux 6.8-rc1 (diff)
downloadwireguard-linux-73ae7e1c7644a8c33ba526302a10267cdbc249f8.tar.xz
wireguard-linux-73ae7e1c7644a8c33ba526302a10267cdbc249f8.zip
ata: libata-sata: improve sysfs description for ATA_LPM_UNKNOWN
Currently, both ATA_LPM_UNKNOWN (0) and ATA_LPM_MAX_POWER (1) displays as "max_performance" in sysfs. This is quite misleading as they are not the same. For ATA_LPM_UNKNOWN, ata_eh_set_lpm() will not be called at all, leaving the configuration in unknown state. For ATA_LPM_MAX_POWER, ata_eh_set_lpm() is called, and setting the policy to ATA_LPM_MAX_POWER. This also matches the description of the SATA_MOBILE_LPM_POLICY Kconfig: 0 => Keep firmware settings 1 => Maximum performance Thus, update the sysfs description for ATA_LPM_UNKNOWN to match reality. While at it, update libata.h to mention that the ascii descriptions are in libata-sata.c and not in libata-scsi.c. Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 1dbb14daccfa..26d68115afb8 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -471,7 +471,7 @@ enum ata_completion_errors {
/*
* Link power management policy: If you alter this, you also need to
- * alter libata-scsi.c (for the ascii descriptions)
+ * alter libata-sata.c (for the ascii descriptions)
*/
enum ata_lpm_policy {
ATA_LPM_UNKNOWN,