aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2012-04-18 09:29:47 +0800
committerJeff Garzik <jgarzik@redhat.com>2012-04-18 14:33:25 -0400
commit0c8d32c27f5cf6e14ca14b4758d1e994eebd50fd (patch)
tree7d5bce4b9d024c88dc67d8e2ef0c81df4c5be342 /drivers/ata
parentlibata: make ata_print_id atomic (diff)
downloadlinux-dev-0c8d32c27f5cf6e14ca14b4758d1e994eebd50fd.tar.xz
linux-dev-0c8d32c27f5cf6e14ca14b4758d1e994eebd50fd.zip
libata: forbid port runtime pm by default, fixing regression
Forbid port runtime pm by default because it has known hotplug issue. User can allow it by, for example echo auto > /sys/devices/pci0000:00/0000:00:1f.2/ata2/power/control Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-transport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transport.c
index 74aaee30e264..c34190485377 100644
--- a/drivers/ata/libata-transport.c
+++ b/drivers/ata/libata-transport.c
@@ -294,6 +294,7 @@ int ata_tport_add(struct device *parent,
device_enable_async_suspend(dev);
pm_runtime_set_active(dev);
pm_runtime_enable(dev);
+ pm_runtime_forbid(dev);
transport_add_device(dev);
transport_configure_device(dev);