linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: shmobile: fix MMCIF IRQ assignment on kzm9g
@ 2012-09-18 22:52 Guennadi Liakhovetski
  2012-09-19  0:14 ` Simon Horman
  0 siblings, 1 reply; 4+ messages in thread
From: Guennadi Liakhovetski @ 2012-09-18 22:52 UTC (permalink / raw)
  To: linux-mmc
  Cc: Tetsuyuki Kobayashi, yusuke.goda.sx, Kuninori Morimoto,
	Paul Mundt, Magnus Damm, linux-sh, Kuninori Morimoto,
	Simon Horman

Error and operation IRQs are swapped in kzm9g platform data, this patch
fixes their order. The only problem this bug causes is the confusing IRQ 
count in /proc/interrupts output, otherwise functionality is unaffected, 
since the driver doesn't really differentiate between the two IRQs.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
---

The error is easy to see in /proc/interrupts output, kota2 has the correct 
IRQ assignment, ag5evm has the same problem, as kzm9g, so, it might need 
fixing too. I certainly could cook up a similar trivial patch for it, but 
someone will have to test it.

 arch/arm/mach-shmobile/board-kzm9g.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index 29cca80..21c90c4 100644
--- a/arch/arm/mach-shmobile/board-kzm9g.c
+++ b/arch/arm/mach-shmobile/board-kzm9g.c
@@ -346,11 +346,11 @@ static struct resource sh_mmcif_resources[] = {
 		.flags	= IORESOURCE_MEM,
 	},
 	[1] = {
-		.start	= gic_spi(141),
+		.start	= gic_spi(140),
 		.flags	= IORESOURCE_IRQ,
 	},
 	[2] = {
-		.start	= gic_spi(140),
+		.start	= gic_spi(141),
 		.flags	= IORESOURCE_IRQ,
 	},
 };
-- 
1.7.2.5


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

end of thread, other threads:[~2012-09-20  1:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-18 22:52 [PATCH] ARM: shmobile: fix MMCIF IRQ assignment on kzm9g Guennadi Liakhovetski
2012-09-19  0:14 ` Simon Horman
2012-09-19 21:08   ` Guennadi Liakhovetski
2012-09-20  1:54     ` Simon Horman

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