linux/drivers
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
..
accel drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
accessibility
acpi Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
amba PM: domains: Add flags to specify power on attach/detach 2025-07-07 20:41:20 +02:00
android Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
ata ata: libata-sata: Add link_power_management_supported sysfs attribute 2025-07-31 12:56:21 +09:00
atm atm: lanai: fix "take a while" typo 2025-07-08 08:27:19 -07:00
auxdisplay
base drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
bcma
block for-6.17/block-20250728 2025-07-28 16:43:54 -07:00
bluetooth Bluetooth: btintel_pcie: Fix Alive Context State Handling 2025-07-23 10:34:30 -04:00
bus soc: driver updates for 6.17 2025-07-29 11:13:27 -07:00
cache
cdrom cdrom: Call cdrom_mrw_exit from cdrom_release function 2025-07-22 19:10:17 -06:00
cdx cdx: Fix missing GENERIC_MSI_IRQ on compile test 2025-07-16 14:17:31 +02:00
char Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
clk soc: driver updates for 6.17 2025-07-29 11:13:27 -07:00
clocksource A treewide cleanup of struct cycle_counter const annotations: 2025-07-29 14:02:53 -07:00
comedi Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
connector
counter
cpufreq Remove or hide unused tracepoints 2025-07-30 16:41:58 -07:00
cpuidle pmdomain core: 2025-07-29 11:42:31 -07:00
crypto Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
cxl Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
dax
dca
devfreq PM / devfreq: Add HiSilicon uncore frequency scaling driver 2025-07-14 20:23:57 +09:00
dio
dma spidev: introduce trivial abb sensor device 2025-07-21 15:39:07 +01:00
dma-buf drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
dpll dpll: zl3073x: Fix build failure 2025-07-26 12:05:33 -07:00
edac - i10nm: 2025-07-29 16:30:38 -07:00
eisa
extcon
firewire
firmware arm64 updates for 6.17: 2025-07-29 20:21:54 -07:00
fpga
fsi Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
fwctl
gnss
gpio gpio updates for v6.17-rc1 2025-07-28 21:58:46 -07:00
gpu drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
greybus
hid Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
hsi
hte
hv ARM: 2025-07-30 17:14:01 -07:00
hwmon pwm: Changes for v6.17-rc1 2025-07-28 23:17:46 -07:00
hwspinlock
hwtracing
i2c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
i3c
idle
iio Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
infiniband Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
input Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
interconnect Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
iommu ARM: 2025-07-30 17:14:01 -07:00
ipack
irqchip ARM: 2025-07-30 17:14:01 -07:00
isdn
leds Locking updates for v6.16: 2025-07-29 18:11:32 -07:00
macintosh
mailbox Merge branch 'newsoc/cix-p1' into soc/newsoc 2025-07-21 17:16:16 +02:00
mcb mcb: use sysfs_emit_at() instead of scnprintf() in show functions 2025-07-16 14:17:07 +02:00
md for-6.17/block-20250728 2025-07-28 16:43:54 -07:00
media Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
memory Memory controller drivers for v6.17 2025-07-22 22:47:00 +02:00
memstick memstick: core: Zero initialize id_reg in h_memstick_read_dev_id() 2025-07-16 12:01:09 +02:00
message
mfd regulator: Updates for v6.17 2025-07-28 22:52:02 -07:00
misc Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
mmc MMC core: 2025-07-29 12:05:38 -07:00
most
mtd drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
mux hardening updates for v6.17-rc1 2025-07-28 17:16:12 -07:00
net xen: branch for v6.17-rc1 2025-07-30 17:03:49 -07:00
nfc
ntb
nubus
nvdimm
nvme for-6.17/block-20250728 2025-07-28 16:43:54 -07:00
nvmem Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
of ARM: 2025-07-30 17:14:01 -07:00
opp
parisc parisc/power: Move soft-power into power.c 2025-07-23 11:52:48 +02:00
parport
pci ARM: 2025-07-30 17:14:01 -07:00
pcmcia
peci
perf drivers/perf: hisi: Support PMUs with no interrupt 2025-07-14 15:42:16 +01:00
phy phy: qcom: fix error code in snps_eusb2_hsphy_probe() 2025-07-15 20:36:47 +05:30
pinctrl soc: driver updates for 6.17 2025-07-29 11:13:27 -07:00
platform x86/platform changes for v6.17: 2025-07-29 20:05:06 -07:00
pmdomain pmdomain: qcom: rpmhpd: Add Glymur RPMh Power Domains 2025-07-23 12:12:16 +02:00
pnp
power Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
powercap platform-drivers-x86 for v6.17-1 2025-07-28 23:21:28 -07:00
pps
ps3
ptp Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
pwm pwm: Changes for v6.17-rc1 2025-07-28 23:17:46 -07:00
rapidio
ras
regulator regulator: mt6370: Fix spelling mistake in mt6370_regualtor_register 2025-07-24 18:04:38 +01:00
remoteproc remoteproc: imx_rproc: detect and attach to pre-booted remote cores 2025-07-18 12:43:46 +02:00
reset
rpmsg PM: domains: Add flags to specify power on attach/detach 2025-07-07 20:41:20 +02:00
rtc
s390 Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
sbus
scsi Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
sh
siox
slimbus
soc drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
soundwire Power management updates for 6.17-rc1 2025-07-28 20:13:36 -07:00
spi Locking updates for v6.16: 2025-07-29 18:11:32 -07:00
spmi
ssb ssb: use new GPIO line value setter callbacks for the second GPIO chip 2025-07-24 09:06:46 +02:00
staging Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
target
tc
tee
thermal Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
thunderbolt thunderbolt: Fix copy+paste error in match_service_id() 2025-07-21 16:33:43 +02:00
tty Summary 2025-07-29 21:43:08 -07:00
ufs
uio
usb Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
vdpa
vfio
vhost ARM: 2025-07-30 17:14:01 -07:00
video drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
virt - Map the SNP calling area pages too so that OVMF EFI fw can issue SVSM 2025-07-29 17:18:46 -07:00
virtio Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
w1
watchdog
xen xen/gntdev: remove struct gntdev_copy_batch from stack 2025-07-14 17:10:09 +02:00
zorro
Kconfig drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
Makefile