From: Samuel Morris <samorris@xxxxxxxxxxx> Hello all, This set of patches adds the ability to runtime suspend the ahci_platform device. This has the effect of disabling hotplug and saving ~150mW on platforms I've tested. v4 changes: Calling runtime_resume without calling runtime_suspend on ahci_platform devices I was testing caused the host to lock up. I prevented this previously by calling pm_runtime_set_active() before the first runtime_get()/runtime_forbid(). This however caused OMAP devices to fail at probe, it appears because necessary parent devices were not being runtime resumed at the runtime_get(). To fix this, I removed the pm_runtime_set_active(), and instead just set an 'initialized' flag at the end of probe to prevent the first resume() for an ahci_platform device. Thus, with the exception of writing the flag, essentially the same operations should be performed at probe as before these patches. Thanks for taking a look, Samuel Morris (3): ata: ahci: rpm_put port on port_stop to match rpm_get in port_start ata: ahci_platform: allow disabling of hotplug to save power ata: prevent double resume of ata platform device on init drivers/ata/ahci.h | 1 + drivers/ata/ahci_platform.c | 11 +++- drivers/ata/libahci.c | 2 + drivers/ata/libahci_platform.c | 95 +++++++++++++++++++++++++++------- include/linux/ahci_platform.h | 2 + 5 files changed, 89 insertions(+), 22 deletions(-) -- 2.17.0 -- 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