From: shawn.guo@linaro.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] ARM: imx6: call suspend_set_ops() from suspend routine
Date: Wed, 26 Feb 2014 21:44:39 +0800 [thread overview]
Message-ID: <1393422280-22283-3-git-send-email-shawn.guo@linaro.org> (raw)
In-Reply-To: <1393422280-22283-1-git-send-email-shawn.guo@linaro.org>
Rename function imx6q_ocram_suspend_init() to imx6q_suspend_init() and
call suspend_set_ops() from there. Now we get a centralized function
for suspend initialization.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
arch/arm/mach-imx/pm-imx6q.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/arch/arm/mach-imx/pm-imx6q.c b/arch/arm/mach-imx/pm-imx6q.c
index a9a187d..2473ad4 100644
--- a/arch/arm/mach-imx/pm-imx6q.c
+++ b/arch/arm/mach-imx/pm-imx6q.c
@@ -382,8 +382,7 @@ out:
return ret;
}
-static int __init imx6q_ocram_suspend_init(const struct imx6_pm_socdata
- *socdata)
+static int __init imx6q_suspend_init(const struct imx6_pm_socdata *socdata)
{
phys_addr_t ocram_pbase;
struct device_node *node;
@@ -394,6 +393,8 @@ static int __init imx6q_ocram_suspend_init(const struct imx6_pm_socdata
int i, ret = 0;
const u32 *mmdc_offset_array;
+ suspend_set_ops(&imx6q_pm_ops);
+
if (!socdata) {
pr_warn("%s: invalid argument!\n", __func__);
return -EINVAL;
@@ -515,9 +516,9 @@ static void __init imx6_pm_common_init(const struct imx6_pm_socdata
WARN_ON(!ccm_base);
- ret = imx6q_ocram_suspend_init(socdata);
+ ret = imx6q_suspend_init(socdata);
if (ret)
- pr_warn("%s: failed to initialize ocram suspend %d!\n",
+ pr_warn("%s: No DDR LPM support with suspend %d!\n",
__func__, ret);
/*
@@ -531,9 +532,6 @@ static void __init imx6_pm_common_init(const struct imx6_pm_socdata
if (!IS_ERR(gpr))
regmap_update_bits(gpr, IOMUXC_GPR1, IMX6Q_GPR1_GINT,
IMX6Q_GPR1_GINT);
-
-
- suspend_set_ops(&imx6q_pm_ops);
}
void __init imx6q_pm_init(void)
--
1.7.9.5
next prev parent reply other threads:[~2014-02-26 13:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 13:44 [PATCH 1/4] ARM: imx6: move v7_cpu_resume() into suspend-imx6.S Shawn Guo
2014-02-26 13:44 ` [PATCH 2/4] ARM: imx6: build headsmp.o only on CONFIG_SMP Shawn Guo
2014-02-26 21:00 ` Russell King - ARM Linux
2014-02-27 8:24 ` Shawn Guo
2014-02-26 13:44 ` Shawn Guo [this message]
2014-02-26 13:44 ` [PATCH 4/4] ARM: imx6: do not call imx6q_suspend_init() with !CONFIG_SUSPEND Shawn Guo
2014-02-27 12:59 ` [PATCH 1/4] ARM: imx6: move v7_cpu_resume() into suspend-imx6.S Arnd Bergmann
2014-02-27 13:12 ` Shawn Guo
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=1393422280-22283-3-git-send-email-shawn.guo@linaro.org \
--to=shawn.guo@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).