From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/5] ahci: st: Invoke AHCI Platform Suspend/Resume
Date: Wed, 12 Mar 2014 12:39:42 +0000 [thread overview]
Message-ID: <1394627982-23726-6-git-send-email-lee.jones@linaro.org> (raw)
In-Reply-To: <1394627982-23726-1-git-send-email-lee.jones@linaro.org>
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>
---
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
next prev parent reply other threads:[~2014-03-12 12:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-12 12:39 [PATCH 0/5] ahci: st: Apply Bartlomiej's suggestions Lee Jones
2014-03-12 12:39 ` [PATCH 1/5] ahci: st: Standardise naming conventions Lee Jones
2014-03-12 12:39 ` [PATCH 2/5] ahci: st: Remove legacy dependencies on PHY Lee Jones
2014-03-12 12:39 ` [PATCH 3/5] ahci: st: Utilise ata_platform_remove_one() call Lee Jones
2014-03-12 12:39 ` [PATCH 4/5] ahci: st: Only build for ST-Micro h/w Lee Jones
2014-03-12 12:39 ` Lee Jones [this message]
2014-03-14 13:22 ` [PATCH 0/5] ahci: st: Apply Bartlomiej's suggestions Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1394627982-23726-6-git-send-email-lee.jones@linaro.org \
--to=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).