linux/include
Damien Le Moal 0060beec0b ata: libata-sata: Add link_power_management_supported sysfs attribute
A port link power management (LPM) policy can be controlled using the
link_power_management_policy sysfs host attribute. However, this
attribute exists also for hosts that do not support LPM and in such
case, attempting to change the LPM policy for the host (port) will fail
with -EOPNOTSUPP.

Introduce the new sysfs link_power_management_supported host attribute
to indicate to the user if a the port and the devices connected to the
port for the host support LPM, which implies that the
link_power_management_policy attribute can be used.

Since checking that a port and its devices support LPM is common between
the new ata_scsi_lpm_supported_show() function and the existing
ata_scsi_lpm_store() function, the new helper ata_scsi_lpm_supported()
is introduced.

Fixes: 413e800cad ("ata: libata-sata: Disallow changing LPM state if not supported")
Reported-by: Borah, Chaitanya Kumar <chaitanya.kumar.borah@intel.com>
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202507251014.a5becc3b-lkp@intel.com
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
2025-07-31 12:56:21 +09:00
..
acpi ACPI updates for 6.17-rc1 2025-07-28 20:44:42 -07:00
asm-generic ARM: 2025-07-30 17:14:01 -07:00
clocksource
crypto crypto: sha1 - Remove sha1_base.h 2025-07-14 11:28:38 -07:00
cxl
drm drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
dt-bindings drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
hyperv hyperv-next for v6.16 2025-06-03 08:39:20 -07:00
keys
kunit linux_kselftest-kunit-6.17-rc1 2025-07-29 12:43:10 -07:00
kvm KVM/arm64 changes for 6.17, round #1 2025-07-29 12:27:40 -04:00
linux ata: libata-sata: Add link_power_management_supported sysfs attribute 2025-07-31 12:56:21 +09:00
math-emu
media
memory
misc
net bpf-next-6.17 2025-07-30 09:58:50 -07:00
pcmcia
ras tracing, AER: Hide PCIe AER event when PCIEAER is not configured 2025-07-21 16:40:56 -04:00
rdma
rv rv: Retry when da monitor detects race conditions 2025-07-28 16:47:34 -04:00
scsi SCSI misc on 20250529 2025-05-29 22:17:52 -07:00
soc soc: qcom: spmi-pmic: add more PMIC SUBTYPE IDs 2025-07-16 22:58:03 -05:00
sound ASoC: Updates for v6.17 2025-07-24 14:47:49 +02:00
target
trace drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
uapi drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
ufs
vdso vdso/gettimeofday: Add support for auxiliary clocks 2025-07-18 14:09:39 +02:00
video video: Make global edid_info depend on CONFIG_FIRMWARE_EDID 2025-06-16 11:00:29 +02:00
xen xen: Remove some deadcode (x) 2025-07-14 09:55:52 +02:00
Kbuild