From: Lee Jones Date: Wed, 12 Mar 2014 12:39:42 +0000 (+0000) Subject: ahci: st: Invoke AHCI Platform Suspend/Resume X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=087d26502cbcb2f05810ff241de26816962413c2;p=karo-tx-linux.git ahci: st: Invoke AHCI Platform Suspend/Resume This is where we disable IRQs on suspend and update the internal power state during suspend/resume. Suggested-by: Bartlomiej Zolnierkiewicz Signed-off-by: Lee Jones Signed-off-by: Tejun Heo (cherry picked from commit 761a8c2765df17ac5296e2631a16ec08d1a0cb1c) --- diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 3edec5db3717..17191b96648e 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c @@ -186,6 +186,10 @@ static int st_ahci_suspend(struct device *dev) struct ahci_host_priv *hpriv = drv_data->hpriv; int err; + ret = ahci_platform_suspend_host(dev); + if (ret) + return ret; + if (drv_data->pwr) { err = reset_control_assert(drv_data->pwr); if (err) { @@ -215,7 +219,7 @@ static int st_ahci_resume(struct device *dev) return err; } - return 0; + return ahci_platform_resume_host(dev); } #endif