From patchwork Wed Apr 18 17:29:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Hotplug borked after suspend/resume in Linux-3.3 ? Date: Wed, 18 Apr 2012 07:29:27 -0000 From: Jeff Garzik X-Patchwork-Id: 153542 Message-Id: <4F8EF9F7.5040202@pobox.com> To: Martin Mokrejs Cc: cwillu , Mark Lord , Tejun Heo , IDE/ATA development list On 04/18/2012 01:10 PM, Martin Mokrejs wrote: > Fix: I got my 3TB disk detected by this single command: > > # echo on> /sys/devices/pci0000:00/0000:00:1f.2/ata6/power/control > # > > This is a Dell Vostro 3550 with A09 BIOS. Same happend with 3.4-rc3 kernel. > > I can do some more testing if you want me to. > Best, > Martin Can you test this one-line patch from Lin Ming? Hopefully there is zero sysfs twiddling required with this one... --- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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);