From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guennadi Liakhovetski Date: Tue, 18 Sep 2012 22:52:26 +0000 Subject: [PATCH] ARM: shmobile: fix MMCIF IRQ assignment on kzm9g Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-mmc@vger.kernel.org Cc: Tetsuyuki Kobayashi , yusuke.goda.sx@renesas.com, Kuninori Morimoto , Paul Mundt , Magnus Damm , linux-sh@vger.kernel.org, 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 --- 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