summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
authorKristen Carlson Accardi <kristen@linux.intel.com>2011-03-04 19:24:11 +0100
committerJeff Garzik <jgarzik@pobox.com>2011-05-20 02:50:53 +0200
commit8a745f1f39b7a20047a362b67ce9151c07d14440 (patch)
treef8f08be7a284d195f30a8b2e6fc63b714e4f7f21 /drivers/ata/libata-eh.c
parentlibata-pmp: add support for Thermaltake BlackX Duet esata drive dock (diff)
downloadlinux-8a745f1f39b7a20047a362b67ce9151c07d14440.tar.xz
linux-8a745f1f39b7a20047a362b67ce9151c07d14440.zip
libata: Power off empty ports
Give users the option of completely powering off unoccupied SATA ports using the existing min_power link_power_management_policy option. When the use selects this option on an empty port, we will power the port off by setting DET to off. For occupied ports, behavior is unchanged. Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r--drivers/ata/libata-eh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index dad9fd660f37..dfb6e9d3d759 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -3423,7 +3423,7 @@ fail:
return rc;
}
-static int ata_link_nr_enabled(struct ata_link *link)
+int ata_link_nr_enabled(struct ata_link *link)
{
struct ata_device *dev;
int cnt = 0;