ahci: st: Invoke AHCI Platform Suspend/Resume
authorLee Jones <lee.jones@linaro.org>
Wed, 12 Mar 2014 12:39:42 +0000 (12:39 +0000)
committerTejun Heo <tj@kernel.org>
Fri, 14 Mar 2014 13:21:05 +0000 (09:21 -0400)
This is where we disable IRQs on suspend and update the internal
power state during suspend/resume.

Suggested-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci_st.c

index 3edec5db37171e8a2a2a44a820c53f9cb5c6c30c..17191b96648e1b21a1b975815718826275d0fcca 100644 (file)
@@ -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