Re: [PATCH 3/3] ata: allow runtime pm of transport layer if no devices attached

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

On 4/7/2018 11:47 PM, 0v3rdr0n3@xxxxxxxxx wrote:

From: Samuel Morris <samorris@xxxxxxxxxxx>

If no devices are detected on boot, and hotplug is disabled, let the
transport layer suspend automatically to save power automatically.

   Sounds tautological.

Signed-off-by: Samuel Morris <samorris@xxxxxxxxxxx>
---
  drivers/ata/libata-scsi.c | 8 ++++++++
  1 file changed, 8 insertions(+)

diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 89a9d4a2efc8..0f28af19f463 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
[...]
@@ -4568,6 +4569,7 @@ int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht)
  void ata_scsi_scan_host(struct ata_port *ap, int sync)
  {
  	int tries = 5;
+	int devAttached = 0;

   No camelCase names, please. And this variable should be *bool*.

[...]

MBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux