Re: [PATCH v6 0/3] Support power resources defined in acpi on ata

From: Niklas Cassel

Date: Fri Nov 07 2025 - 03:51:51 EST


On Tue, Nov 04, 2025 at 02:24:31PM +0000, Markus Probst wrote:
> This series adds support for power resources defined in acpi on 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 sata power connectors 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.

(snip)

> Markus Probst (3):
> scsi: sd: Add manage_restart device attribute to scsi_disk
> ata: Use ACPI methods to power on disks
> ata: stop disk on restart if ACPI power resources are found
>
> drivers/ata/libata-acpi.c | 67 ++++++++++++++++++++++++++++++++++++++
> drivers/ata/libata-core.c | 2 ++
> drivers/ata/libata-scsi.c | 1 +
> drivers/ata/libata.h | 4 +++
> drivers/scsi/sd.c | 34 ++++++++++++++++++-
> include/scsi/scsi_device.h | 6 ++++
> 6 files changed, 113 insertions(+), 1 deletion(-)

Martin, James,

Please have a look.

If you have no comments, is it okay to take this via the libata tree,
or do you prefer to merge the series via the scsi tree?


Kind regards,
Niklas