diff options
author | Lin Ming <ming.m.lin@intel.com> | 2012-04-18 09:29:47 +0800 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-04-18 14:33:25 -0400 |
commit | 0c8d32c27f5cf6e14ca14b4758d1e994eebd50fd (patch) | |
tree | 7d5bce4b9d024c88dc67d8e2ef0c81df4c5be342 /drivers/ata | |
parent | 85d6725b7c0d7e3fa4261fdd4c020be4224fc9f1 (diff) | |
download | op-kernel-dev-0c8d32c27f5cf6e14ca14b4758d1e994eebd50fd.zip op-kernel-dev-0c8d32c27f5cf6e14ca14b4758d1e994eebd50fd.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transport.c index 74aaee3..c341904 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); |