linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] plat-omap: mcbsp: Configure wakeup in later phase
@ 2011-12-15  9:34 Peter Ujfalusi
  2012-03-05 19:50 ` Tony Lindgren
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Ujfalusi @ 2011-12-15  9:34 UTC (permalink / raw)
  To: linux-arm-kernel

Configure the WAKEUPEN register at the same time we configure the rest of
the McBSP registers.
In case of OMAP3+, if the sysclock has been reconfigured we are going to
disable McBSP for the duration of the clock change, which will reset the
McBSP registers. The WAKEUPEN register need to be configured later, so
the changes will be effective during runtime.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/plat-omap/mcbsp.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c
index 4b15cd7..f2eb1bb 100644
--- a/arch/arm/plat-omap/mcbsp.c
+++ b/arch/arm/plat-omap/mcbsp.c
@@ -185,6 +185,9 @@ void omap_mcbsp_config(unsigned int id, const struct omap_mcbsp_reg_cfg *config)
 		MCBSP_WRITE(mcbsp, XCCR, config->xccr);
 		MCBSP_WRITE(mcbsp, RCCR, config->rccr);
 	}
+	/* Enable wakeup behavior */
+	if (mcbsp->pdata->has_wakeup)
+		MCBSP_WRITE(mcbsp, WAKEUPEN, XRDYEN | RRDYEN);
 }
 EXPORT_SYMBOL(omap_mcbsp_config);
 
@@ -685,10 +688,6 @@ int omap_mcbsp_request(unsigned int id)
 
 	pm_runtime_get_sync(mcbsp->dev);
 
-	/* Enable wakeup behavior */
-	if (mcbsp->pdata->has_wakeup)
-		MCBSP_WRITE(mcbsp, WAKEUPEN, XRDYEN | RRDYEN);
-
 	/*
 	 * Make sure that transmitter, receiver and sample-rate generator are
 	 * not running before activating IRQs.
-- 
1.7.8

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] plat-omap: mcbsp: Configure wakeup in later phase
  2011-12-15  9:34 [PATCH] plat-omap: mcbsp: Configure wakeup in later phase Peter Ujfalusi
@ 2012-03-05 19:50 ` Tony Lindgren
  2012-03-07 12:21   ` Peter Ujfalusi
  0 siblings, 1 reply; 3+ messages in thread
From: Tony Lindgren @ 2012-03-05 19:50 UTC (permalink / raw)
  To: linux-arm-kernel

Peter,

* Peter Ujfalusi <peter.ujfalusi@ti.com> [111215 01:03]:
> Configure the WAKEUPEN register at the same time we configure the rest of
> the McBSP registers.
> In case of OMAP3+, if the sysclock has been reconfigured we are going to
> disable McBSP for the duration of the clock change, which will reset the
> McBSP registers. The WAKEUPEN register need to be configured later, so
> the changes will be effective during runtime.

Just checking.. I assume this one is already taken care of with your
other McBSP changes?

Tony

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] plat-omap: mcbsp: Configure wakeup in later phase
  2012-03-05 19:50 ` Tony Lindgren
@ 2012-03-07 12:21   ` Peter Ujfalusi
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Ujfalusi @ 2012-03-07 12:21 UTC (permalink / raw)
  To: linux-arm-kernel

On 03/05/2012 09:50 PM, Tony Lindgren wrote:
> Just checking.. I assume this one is already taken care of with your
> other McBSP changes?

Yes it is. I just resent it against the moved McBSP driver for ASoC.

-- 
P?ter

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-07 12:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-15  9:34 [PATCH] plat-omap: mcbsp: Configure wakeup in later phase Peter Ujfalusi
2012-03-05 19:50 ` Tony Lindgren
2012-03-07 12:21   ` Peter Ujfalusi

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).