diff mbox

[5/5] pinctrl: sirf: add freeze and restore entries for hibernation support

Message ID 1372924793-5579-1-git-send-email-Baohua.Song@csr.com (mailing list archive)
State New, archived
Headers show

Commit Message

Barry Song July 4, 2013, 7:59 a.m. UTC
this patch adds hibernation entries so that the sirf platform can
support suspend-to-disk.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
 drivers/pinctrl/sirf/pinctrl-sirf.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Linus Walleij July 21, 2013, 10:57 p.m. UTC | #1
On Thu, Jul 4, 2013 at 9:59 AM, Barry Song <Baohua.Song@csr.com> wrote:

> this patch adds hibernation entries so that the sirf platform can
> support suspend-to-disk.
>
> Signed-off-by: Barry Song <Baohua.Song@csr.com>

Are you really using this?

Applied anyway...

Yours,
Linus Walleij
Barry Song July 22, 2013, 12:04 a.m. UTC | #2
2013/7/22 Linus Walleij <linus.walleij@linaro.org>:
> On Thu, Jul 4, 2013 at 9:59 AM, Barry Song <Baohua.Song@csr.com> wrote:
>
>> this patch adds hibernation entries so that the sirf platform can
>> support suspend-to-disk.
>>
>> Signed-off-by: Barry Song <Baohua.Song@csr.com>
>
> Are you really using this?

yes, we do for quick boot requirement.

>
> Applied anyway...
>
> Yours,
> Linus Walleij

-barry
diff mbox

Patch

diff --git a/drivers/pinctrl/sirf/pinctrl-sirf.c b/drivers/pinctrl/sirf/pinctrl-sirf.c
index 7186b46..0792e8d 100644
--- a/drivers/pinctrl/sirf/pinctrl-sirf.c
+++ b/drivers/pinctrl/sirf/pinctrl-sirf.c
@@ -440,6 +440,8 @@  static int sirfsoc_pinmux_resume_noirq(struct device *dev)
 static const struct dev_pm_ops sirfsoc_pinmux_pm_ops = {
 	.suspend_noirq = sirfsoc_pinmux_suspend_noirq,
 	.resume_noirq = sirfsoc_pinmux_resume_noirq,
+	.freeze_noirq = sirfsoc_pinmux_suspend_noirq,
+	.restore_noirq = sirfsoc_pinmux_resume_noirq,
 };
 #endif