[PATCH v2 0/2] Support power resources defined in acpi on ata

Markus Probst
2025-10-09T11:24:50Z

This series adds support for power resources defined in acpi for ata
ports/devices. A device can define a power resource in an ata port/device,
which then gets powered on right before the port is probed. This can be
useful for devices, which have ata ports that are:
a: powered down by default
b: can be individually powered on
like in some synology nas devices. If thats the case it will be assumed,
that the power resource won't survive reboots and therefore the disk will
be stopped.

Changes since v1:
- improved commit messages
- addressed style issues (too long lines and docs)
- removed ata_dev_manage_restart() and ata_port_set_power_state()
methods
- improved log messages in ata_acpi_port_set_power_state

Markus Probst (2):
scsi: sd: Add manage_restart device attribute to scsi_disk
ata: Use ACPI methods to power on ata ports

drivers/ata/libata-acpi.c | 70 ++++++++++++++++++++++++++++++++++++++
drivers/ata/libata-core.c | 2 ++
drivers/ata/libata-scsi.c | 1 +
drivers/ata/libata.h | 4 +++
drivers/scsi/sd.c | 35 ++++++++++++++++++-
include/scsi/scsi_device.h | 6 ++++
6 files changed, 117 insertions(+), 1 deletion(-)

--
2.49.1