Re: Hotplug borked after suspend/resume in Linux-3.3 ?
|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Martin Mokrejs wrote: > > > Jeff Garzik wrote: >> 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... >> >> --- 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); > > Works! (the src tree has some pcieh patches so can re-test in a while on vanilla kernel > sources if you want me to confirm that). Just too many patches to try. ;-) Just confirming that it fixed even plain 3.4-rc3 as well. Martin -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html