From: Lin Ming Date: Wed, 18 Apr 2012 01:29:47 +0000 (+0800) Subject: libata: forbid port runtime pm by default, fixing regression X-Git-Tag: v3.3.8~68 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c8e230a5c50448957a350c0a9119c11c6a7af975;p=karo-tx-linux.git libata: forbid port runtime pm by default, fixing regression commit 0c8d32c27f5cf6e14ca14b4758d1e994eebd50fd upstream. 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 Signed-off-by: Jeff Garzik Signed-off-by: Greg Kroah-Hartman --- 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);