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

Markus Probst posted 2 patches 2 months, 1 week ago
There is a newer version of this series
drivers/ata/libata-acpi.c  | 71 ++++++++++++++++++++++++++++++++++++++
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, 118 insertions(+), 1 deletion(-)
[PATCH v3 0/2] Support power resources defined in acpi on ata
Posted by Markus Probst 2 months, 1 week ago
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.

Changes since v2:
- improved commit messages
- addressed warning from kernel test robot

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 disks

 drivers/ata/libata-acpi.c  | 71 ++++++++++++++++++++++++++++++++++++++
 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, 118 insertions(+), 1 deletion(-)

-- 
2.49.1