public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Support power resources defined in acpi on ata
@ 2025-10-10 22:38 Markus Probst
  2025-10-10 22:38 ` [PATCH v3 1/2] scsi: sd: Add manage_restart device attribute to scsi_disk Markus Probst
  2025-10-10 22:38 ` [PATCH v3 2/2] ata: Use ACPI methods to power on disks Markus Probst
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Probst @ 2025-10-10 22:38 UTC (permalink / raw)
  To: Damien Le Moal, Niklas Cassel, James E.J. Bottomley,
	Martin K. Petersen
  Cc: linux-ide, linux-scsi, linux-kernel, Markus Probst

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-13 12:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-10 22:38 [PATCH v3 0/2] Support power resources defined in acpi on ata Markus Probst
2025-10-10 22:38 ` [PATCH v3 1/2] scsi: sd: Add manage_restart device attribute to scsi_disk Markus Probst
2025-10-13  7:45   ` Niklas Cassel
2025-10-10 22:38 ` [PATCH v3 2/2] ata: Use ACPI methods to power on disks Markus Probst
2025-10-13  8:20   ` Niklas Cassel
2025-10-13 12:29     ` Markus Probst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox