[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1394627982-23726-6-git-send-email-lee.jones@linaro.org>
Date: Wed, 12 Mar 2014 12:39:42 +0000
From: Lee Jones <lee.jones@...aro.org>
To: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
tj@...nel.org
Cc: lee.jones@...aro.org, kernel@...inux.com, b.zolnierkie@...sung.com,
linux-ide@...r.kernel.org
Subject: [PATCH 5/5] 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 <b.zolnierkie@...sung.com>
Signed-off-by: Lee Jones <lee.jones@...aro.org>
---
drivers/ata/ahci_st.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c
index 3edec5d..17191b9 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
--
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists