]> asedeno.scripts.mit.edu Git - linux.git/commit
ata: ahci_platform: allow disabling of hotplug to save power
authorSamuel Morris <samorris@lexmark.com>
Tue, 29 May 2018 10:06:12 +0000 (10:06 +0000)
committerTejun Heo <tj@kernel.org>
Mon, 18 Jun 2018 17:58:55 +0000 (10:58 -0700)
commitaece27a2f01be4bb7683790f69cd1bed3a0929a2
tree7a54d8b35b74fe7df3f2e08755c2f01ef7d5f329
parent332c42a9ff7f75a4d9dd263a6e5da32b45de12ec
ata: ahci_platform: allow disabling of hotplug to save power

A number of resources remain powered to support hotplug. On platforms
I've worked with, allowing the ahci_platform to suspend saves about
150mW. This patch enables rpm and allows the device to be auto-suspended
through sysfs.

Signed-off-by: Samuel Morris <samorris@lexmark.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci_platform.c
drivers/ata/libahci_platform.c
include/linux/ahci_platform.h