linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] OMAP4: McBSP: Clear rx_irq at probe time
@ 2011-05-17 10:33 Peter Ujfalusi
  2011-05-17 12:29 ` Jarkko Nikula
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Ujfalusi @ 2011-05-17 10:33 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-omap, Liam Girdwood, Jarkko Nikula, Kishon Vijay Abraham I

On OMAP4 we have one interrupt line per McBSP port.
At proble time tx, and rx irq value will be -ENXIO,
and only the tx irq will get corrected.
In omap_mcbsp_request if the rx_irq is not 0 we proceed,
and try to request the interrupt, which will fail on
OMAP4 (rx_irq == -6).
To avoid this error, clear the rx_irq at probe time
on OMAP4.

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

diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c
index 5587acf..1e4e32e 100644
--- a/arch/arm/plat-omap/mcbsp.c
+++ b/arch/arm/plat-omap/mcbsp.c
@@ -1867,8 +1867,10 @@ static int __devinit omap_mcbsp_probe(struct platform_device *pdev)
 	mcbsp->rx_irq = platform_get_irq_byname(pdev, "rx");
 
 	/* From OMAP4 there will be a single irq line */
-	if (mcbsp->tx_irq == -ENXIO)
+	if (mcbsp->tx_irq == -ENXIO) {
 		mcbsp->tx_irq = platform_get_irq(pdev, 0);
+		mcbsp->rx_irq = 0;
+	}
 
 	res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "rx");
 	if (!res) {
-- 
1.7.5.rc3


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

end of thread, other threads:[~2011-06-14 12:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-17 10:33 [PATCH] OMAP4: McBSP: Clear rx_irq at probe time Peter Ujfalusi
2011-05-17 12:29 ` Jarkko Nikula
2011-05-17 12:57   ` Tony Lindgren
2011-05-18  5:52     ` Peter Ujfalusi
2011-05-18  7:59       ` Jarkko Nikula
2011-05-31  7:52         ` Tony Lindgren
2011-05-18 12:39     ` Peter Ujfalusi
2011-05-31  7:57       ` Tony Lindgren
2011-06-08  7:51         ` Peter Ujfalusi
2011-06-13 13:35           ` Tony Lindgren
2011-06-14 11:19             ` Péter Ujfalusi
2011-06-14 12:05               ` Jarkko Nikula
2011-06-14 12:40                 ` Tony Lindgren

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