linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: shmobile: kzm9g: bugfix: correct mmcif interrupt settings
@ 2012-09-06  7:19 Tetsuyuki Kobayshi
  2012-09-07  0:47 ` Kuninori Morimoto
  2012-09-18  2:24 ` Simon Horman
  0 siblings, 2 replies; 4+ messages in thread
From: Tetsuyuki Kobayshi @ 2012-09-06  7:19 UTC (permalink / raw)
  To: linux-sh

From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>

Correct interrupt settings of sh_mmc:int and sh_mmc:error in board-kzm9g.c.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
---
Hello, morimoto-san

I found small bug in interrpt setting of sh_mmc in board-kzm9g.c.
According to SoC document, there are 2 interrupts for sh_mmc and smaller vector id is error. But the setting in board-kzm9g seems wrong.

Actually these 2 interrupts use the same interrupt handler. So this patch only affects the output of /proc/interrpts.

before this patch:
  ...
172:          3          0       GIC  sh_mmc:int
173:       9504          0       GIC  sh_mmc:error
  ...

after this patch:
  ...
172:          3          0       GIC  sh_mmc:error
173:       9454          0       GIC  sh_mmc:int
  ...

Morimoto-san, could you verify this?

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

diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index fd21fb6..87ec4ce 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.9.5


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

* Re: [PATCH] ARM: shmobile: kzm9g: bugfix: correct mmcif interrupt settings
  2012-09-06  7:19 [PATCH] ARM: shmobile: kzm9g: bugfix: correct mmcif interrupt settings Tetsuyuki Kobayshi
@ 2012-09-07  0:47 ` Kuninori Morimoto
  2012-09-18  2:24 ` Simon Horman
  1 sibling, 0 replies; 4+ messages in thread
From: Kuninori Morimoto @ 2012-09-07  0:47 UTC (permalink / raw)
  To: linux-sh


Hi Kobayshi-san

> From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
> 
> Correct interrupt settings of sh_mmc:int and sh_mmc:error in board-kzm9g.c.
> 
> Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
> ---
> Hello, morimoto-san
> 
> I found small bug in interrpt setting of sh_mmc in board-kzm9g.c.
> According to SoC document, there are 2 interrupts for sh_mmc and smaller vector id is error. But the setting in board-kzm9g seems wrong.
> 
> Actually these 2 interrupts use the same interrupt handler. So this patch only affects the output of /proc/interrpts.
> 
> before this patch:
>   ...
> 172:          3          0       GIC  sh_mmc:int
> 173:       9504          0       GIC  sh_mmc:error
>   ...
> 
> after this patch:
>   ...
> 172:          3          0       GIC  sh_mmc:error
> 173:       9454          0       GIC  sh_mmc:int
>   ...
> 
> Morimoto-san, could you verify this?

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

> 
>  arch/arm/mach-shmobile/board-kzm9g.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
> index fd21fb6..87ec4ce 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.9.5
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


Best regards
---
Kuninori Morimoto

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

* Re: [PATCH] ARM: shmobile: kzm9g: bugfix: correct mmcif interrupt settings
  2012-09-06  7:19 [PATCH] ARM: shmobile: kzm9g: bugfix: correct mmcif interrupt settings Tetsuyuki Kobayshi
  2012-09-07  0:47 ` Kuninori Morimoto
@ 2012-09-18  2:24 ` Simon Horman
  1 sibling, 0 replies; 4+ messages in thread
From: Simon Horman @ 2012-09-18  2:24 UTC (permalink / raw)
  To: linux-sh

On Thu, Sep 06, 2012 at 05:47:14PM -0700, Kuninori Morimoto wrote:
> 
> Hi Kobayshi-san
> 
> > From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
> > 
> > Correct interrupt settings of sh_mmc:int and sh_mmc:error in board-kzm9g.c.
> > 
> > Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
> > ---
> > Hello, morimoto-san
> > 
> > I found small bug in interrpt setting of sh_mmc in board-kzm9g.c.
> > According to SoC document, there are 2 interrupts for sh_mmc and smaller vector id is error. But the setting in board-kzm9g seems wrong.
> > 
> > Actually these 2 interrupts use the same interrupt handler. So this patch only affects the output of /proc/interrpts.
> > 
> > before this patch:
> >   ...
> > 172:          3          0       GIC  sh_mmc:int
> > 173:       9504          0       GIC  sh_mmc:error
> >   ...
> > 
> > after this patch:
> >   ...
> > 172:          3          0       GIC  sh_mmc:error
> > 173:       9454          0       GIC  sh_mmc:int
> >   ...
> > 
> > Morimoto-san, could you verify this?
> 
> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Thanks, applied to fixes.
I will try and get this included in 3.6.

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

* [PATCH] ARM: shmobile: kzm9g: bugfix: correct mmcif interrupt settings
  2012-09-18  4:46 [GIT PULL] Renesas ARM-based SoC fix for v3.6 #3 Simon Horman
@ 2012-09-18  4:46 ` Simon Horman
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2012-09-18  4:46 UTC (permalink / raw)
  To: linux-arm-kernel

From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>

Correct interrupt settings of sh_mmc:int and sh_mmc:error in board-kzm9g.c.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
---
 arch/arm/mach-shmobile/board-kzm9g.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index 53b7ea9..3b8a017 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.10.4


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

end of thread, other threads:[~2012-09-18  4:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06  7:19 [PATCH] ARM: shmobile: kzm9g: bugfix: correct mmcif interrupt settings Tetsuyuki Kobayshi
2012-09-07  0:47 ` Kuninori Morimoto
2012-09-18  2:24 ` Simon Horman
  -- strict thread matches above, loose matches on Subject: below --
2012-09-18  4:46 [GIT PULL] Renesas ARM-based SoC fix for v3.6 #3 Simon Horman
2012-09-18  4:46 ` [PATCH] ARM: shmobile: kzm9g: bugfix: correct mmcif interrupt settings 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).