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

* Re: [PATCH] ARM: shmobile: fix MMCIF IRQ assignment on kzm9g
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Horman @ 2012-09-19  0:14 UTC (permalink / raw)
  To: Guennadi Liakhovetski
  Cc: linux-mmc, Tetsuyuki Kobayashi, yusuke.goda.sx, Kuninori Morimoto,
	Paul Mundt, Magnus Damm, linux-sh, Kuninori Morimoto

On Wed, Sep 19, 2012 at 12:52:26AM +0200, Guennadi Liakhovetski wrote:
> 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>

Thanks Guennadi,

as it happens I merged a very similar (same?) patch into the
fixes branch of my renesas tree yesterday. It has been accepted
by the arm-soc people and should appear in 3.6.

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

* Re: [PATCH] ARM: shmobile: fix MMCIF IRQ assignment on kzm9g
  2012-09-19  0:14 ` Simon Horman
@ 2012-09-19 21:08   ` Guennadi Liakhovetski
  2012-09-20  1:54     ` Simon Horman
  0 siblings, 1 reply; 4+ messages in thread
From: Guennadi Liakhovetski @ 2012-09-19 21:08 UTC (permalink / raw)
  To: Simon Horman
  Cc: linux-mmc, Tetsuyuki Kobayashi, yusuke.goda.sx, Kuninori Morimoto,
	Paul Mundt, Magnus Damm, linux-sh, Kuninori Morimoto

Hi Simon

On Wed, 19 Sep 2012, Simon Horman wrote:

> On Wed, Sep 19, 2012 at 12:52:26AM +0200, Guennadi Liakhovetski wrote:
> > 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>
> 
> Thanks Guennadi,
> 
> as it happens I merged a very similar (same?) patch into the
> fixes branch of my renesas tree yesterday. It has been accepted
> by the arm-soc people and should appear in 3.6.

Good, just wondering what about ag5evm, it does seem to have the same 
problem. As mentioned before, this is just a "cosmetic" fix, so, up to you 
to decide when and how and if you'd like to fix it.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

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

* Re: [PATCH] ARM: shmobile: fix MMCIF IRQ assignment on kzm9g
  2012-09-19 21:08   ` Guennadi Liakhovetski
@ 2012-09-20  1:54     ` Simon Horman
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2012-09-20  1:54 UTC (permalink / raw)
  To: Guennadi Liakhovetski
  Cc: linux-mmc, Tetsuyuki Kobayashi, yusuke.goda.sx, Kuninori Morimoto,
	Paul Mundt, Magnus Damm, linux-sh, Kuninori Morimoto

On Wed, Sep 19, 2012 at 11:08:52PM +0200, Guennadi Liakhovetski wrote:
> Hi Simon
> 
> On Wed, 19 Sep 2012, Simon Horman wrote:
> 
> > On Wed, Sep 19, 2012 at 12:52:26AM +0200, Guennadi Liakhovetski wrote:
> > > 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>
> > 
> > Thanks Guennadi,
> > 
> > as it happens I merged a very similar (same?) patch into the
> > fixes branch of my renesas tree yesterday. It has been accepted
> > by the arm-soc people and should appear in 3.6.
> 
> Good, just wondering what about ag5evm, it does seem to have the same 
> problem. As mentioned before, this is just a "cosmetic" fix, so, up to you 
> to decide when and how and if you'd like to fix it.

Good point.

Could you prepare a patch just for ag5evm for me to queue up?

^ permalink raw reply	[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).