* Re: [PATCH] spi/pxa2xx: Restore private register bits.
2013-11-28 18:13 [PATCH] spi/pxa2xx: Restore private register bits Chew Chiau Ee
@ 2013-11-28 11:22 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-11-28 11:22 UTC (permalink / raw)
To: Chew Chiau Ee
Cc: Eric Miao, Russell King, Haojian Zhuang, linux-arm-kernel,
linux-spi, linux-kernel, Mika Westerberg
[-- Attachment #1: Type: text/plain, Size: 241 bytes --]
On Fri, Nov 29, 2013 at 02:13:11AM +0800, Chew Chiau Ee wrote:
> From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
>
> The Intel LPSS SPI private register bits have to be restored
> when system resume from S3 suspend.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] spi/pxa2xx: Restore private register bits.
@ 2013-11-28 18:13 Chew Chiau Ee
2013-11-28 11:22 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Chew Chiau Ee @ 2013-11-28 18:13 UTC (permalink / raw)
To: Eric Miao, Russell King, Haojian Zhuang, Mark Brown
Cc: linux-arm-kernel, linux-spi, linux-kernel, Mika Westerberg
From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
The Intel LPSS SPI private register bits have to be restored
when system resume from S3 suspend.
Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
drivers/spi/spi-pxa2xx.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index 7028180..7765b19 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -1293,6 +1293,9 @@ static int pxa2xx_spi_resume(struct device *dev)
/* Enable the SSP clock */
clk_prepare_enable(ssp->clk);
+ /* Restore LPSS private register bits */
+ lpss_ssp_setup(drv_data);
+
/* Start the queue running */
status = spi_master_resume(drv_data->master);
if (status != 0) {
--
1.7.4.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-28 11:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-28 18:13 [PATCH] spi/pxa2xx: Restore private register bits Chew Chiau Ee
2013-11-28 11:22 ` Mark Brown
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).