From: Mirza Krak <mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org>
To: broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Mirza Krak <mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org>
Subject: [PATCH 1/1] spi: fsl-dspi: Use pinctrl PM helpers
Date: Fri, 12 Jun 2015 12:01:43 +0200 [thread overview]
Message-ID: <1434103303-5120-1-git-send-email-mirza.krak@hostmobility.com> (raw)
From: Mirza Krak <mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org>
Add support for "sleep" state of pinctrl.
Signed-off-by: Mirza Krak <mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org>
---
drivers/spi/spi-fsl-dspi.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c
index d1a39249704a..3e76eb710efd 100644
--- a/drivers/spi/spi-fsl-dspi.c
+++ b/drivers/spi/spi-fsl-dspi.c
@@ -429,6 +429,8 @@ static int dspi_suspend(struct device *dev)
spi_master_suspend(master);
clk_disable_unprepare(dspi->clk);
+ pinctrl_pm_select_sleep_state(dev);
+
return 0;
}
@@ -437,6 +439,8 @@ static int dspi_resume(struct device *dev)
struct spi_master *master = dev_get_drvdata(dev);
struct fsl_dspi *dspi = spi_master_get_devdata(master);
+ pinctrl_pm_select_default_state(dev);
+
clk_prepare_enable(dspi->clk);
spi_master_resume(master);
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2015-06-12 10:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 10:01 Mirza Krak [this message]
[not found] ` <1434103303-5120-1-git-send-email-mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org>
2015-06-12 10:23 ` [PATCH 1/1] spi: fsl-dspi: Use pinctrl PM helpers Mark Brown
[not found] ` <20150612102314.GB1921-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-06-12 16:21 ` Mark Brown
[not found] ` <CAJ=nTsuFW-EcZSGPkm0=MxLAYLvzBKK_CO0i6R8=uhSWTFCQTw@mail.gmail.com>
[not found] ` <CAJ=nTsuFW-EcZSGPkm0=MxLAYLvzBKK_CO0i6R8=uhSWTFCQTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-12 16:31 ` Mirza Krak
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=1434103303-5120-1-git-send-email-mirza.krak@hostmobility.com \
--to=mirza.krak-3xduhytr7smqwy+2splsua@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.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).