* [PATCH 1/1] spi: fsl-dspi: Use pinctrl PM helpers @ 2015-06-12 10:01 Mirza Krak [not found] ` <1434103303-5120-1-git-send-email-mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Mirza Krak @ 2015-06-12 10:01 UTC (permalink / raw) To: broonie-DgEjT+Ai2ygdnm+yROfE0A, linux-spi-u79uwXL29TY76Z2rM5mHXA Cc: Mirza Krak 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 ^ permalink raw reply related [flat|nested] 4+ messages in thread
[parent not found: <1434103303-5120-1-git-send-email-mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org>]
* Re: [PATCH 1/1] spi: fsl-dspi: Use pinctrl PM helpers [not found] ` <1434103303-5120-1-git-send-email-mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org> @ 2015-06-12 10:23 ` Mark Brown [not found] ` <20150612102314.GB1921-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Mark Brown @ 2015-06-12 10:23 UTC (permalink / raw) To: Mirza Krak; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 203 bytes --] On Fri, Jun 12, 2015 at 12:01:43PM +0200, Mirza Krak wrote: > From: Mirza Krak <mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org> > > Add support for "sleep" state of pinctrl. Applied, thanks. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20150612102314.GB1921-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>]
* Re: [PATCH 1/1] spi: fsl-dspi: Use pinctrl PM helpers [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> 0 siblings, 1 reply; 4+ messages in thread From: Mark Brown @ 2015-06-12 16:21 UTC (permalink / raw) To: Mirza Krak; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 385 bytes --] On Fri, Jun 12, 2015 at 11:23:14AM +0100, Mark Brown wrote: > On Fri, Jun 12, 2015 at 12:01:43PM +0200, Mirza Krak wrote: > > From: Mirza Krak <mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org> > > > > Add support for "sleep" state of pinctrl. > > Applied, thanks. ...and dropped because it caused build failures (due to a missing header, please fix that and resubmit). [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAJ=nTsuFW-EcZSGPkm0=MxLAYLvzBKK_CO0i6R8=uhSWTFCQTw@mail.gmail.com>]
[parent not found: <CAJ=nTsuFW-EcZSGPkm0=MxLAYLvzBKK_CO0i6R8=uhSWTFCQTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 1/1] spi: fsl-dspi: Use pinctrl PM helpers [not found] ` <CAJ=nTsuFW-EcZSGPkm0=MxLAYLvzBKK_CO0i6R8=uhSWTFCQTw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-06-12 16:31 ` Mirza Krak 0 siblings, 0 replies; 4+ messages in thread From: Mirza Krak @ 2015-06-12 16:31 UTC (permalink / raw) To: Mark Brown; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA And sorry for HTML format. -- Med Vänliga Hälsningar / Best Regards ******************************************************************* Mirza Krak Host Mobility AB mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org Anders Personsgatan 12, 416 64 Göteborg Sweden http://www.hostmobility.com Direct: +46 31 31 32 704 Phone: +46 31 31 32 700 Fax: +46 31 80 67 51 Mobile: +46 730 28 06 22 ******************************************************************* -- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-12 16:31 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-06-12 10:01 [PATCH 1/1] spi: fsl-dspi: Use pinctrl PM helpers Mirza Krak [not found] ` <1434103303-5120-1-git-send-email-mirza.krak-3xdUHytR7SMQwY+2splSUA@public.gmane.org> 2015-06-12 10:23 ` 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
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).