* [PATCH 2/4] sh: sh4: Change the specification method of IRQ to SCIx_IRQ_MUXED
@ 2012-04-13 3:14 Nobuhiro Iwamatsu
2012-05-18 9:11 ` Paul Mundt
2012-05-22 6:22 ` Nobuhiro Iwamatsu
0 siblings, 2 replies; 3+ messages in thread
From: Nobuhiro Iwamatsu @ 2012-04-13 3:14 UTC (permalink / raw)
To: linux-sh
Some SCIF devices specify the same IRQ. We can use SCIx_IRQ_MUXED for this.
And change use to evt2irq(), without specifying the value of IRQ directly.
This is correction to the SH4 series.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
---
arch/sh/kernel/cpu/sh4/setup-sh7750.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7750.c b/arch/sh/kernel/cpu/sh4/setup-sh7750.c
index 98cc0c7..56b3bdc 100644
--- a/arch/sh/kernel/cpu/sh4/setup-sh7750.c
+++ b/arch/sh/kernel/cpu/sh4/setup-sh7750.c
@@ -43,7 +43,7 @@ static struct plat_sci_port sci_platform_data = {
.scscr = SCSCR_TE | SCSCR_RE,
.scbrr_algo_id = SCBRR_ALGO_2,
.type = PORT_SCI,
- .irqs = { 23, 23, 23, 0 },
+ .irqs = SCIx_IRQ_MUXED(evt2irq(0xE40)),
.regshift = 2,
};
@@ -61,7 +61,7 @@ static struct plat_sci_port scif_platform_data = {
.scscr = SCSCR_TE | SCSCR_RE | SCSCR_REIE,
.scbrr_algo_id = SCBRR_ALGO_2,
.type = PORT_SCIF,
- .irqs = { 40, 40, 40, 40 },
+ .irqs = SCIx_IRQ_MUXED(evt2irq(0x700)),
};
static struct platform_device scif_device = {
--
1.7.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/4] sh: sh4: Change the specification method of IRQ to SCIx_IRQ_MUXED
2012-04-13 3:14 [PATCH 2/4] sh: sh4: Change the specification method of IRQ to SCIx_IRQ_MUXED Nobuhiro Iwamatsu
@ 2012-05-18 9:11 ` Paul Mundt
2012-05-22 6:22 ` Nobuhiro Iwamatsu
1 sibling, 0 replies; 3+ messages in thread
From: Paul Mundt @ 2012-05-18 9:11 UTC (permalink / raw)
To: linux-sh
On Fri, Apr 13, 2012 at 12:14:01PM +0900, Nobuhiro Iwamatsu wrote:
> Some SCIF devices specify the same IRQ. We can use SCIx_IRQ_MUXED for this.
> And change use to evt2irq(), without specifying the value of IRQ directly.
> This is correction to the SH4 series.
>
> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
> ---
> arch/sh/kernel/cpu/sh4/setup-sh7750.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7750.c b/arch/sh/kernel/cpu/sh4/setup-sh7750.c
> index 98cc0c7..56b3bdc 100644
> --- a/arch/sh/kernel/cpu/sh4/setup-sh7750.c
> +++ b/arch/sh/kernel/cpu/sh4/setup-sh7750.c
> @@ -43,7 +43,7 @@ static struct plat_sci_port sci_platform_data = {
> .scscr = SCSCR_TE | SCSCR_RE,
> .scbrr_algo_id = SCBRR_ALGO_2,
> .type = PORT_SCI,
> - .irqs = { 23, 23, 23, 0 },
> + .irqs = SCIx_IRQ_MUXED(evt2irq(0xE40)),
> .regshift = 2,
> };
>
23 is actually 0x4e0, 0xe40 would be 98. Fortunately git merge collided
on this while I was merging my evt2irq migration branch, as it's unlikely
anyone would have noticed this for some time..
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/4] sh: sh4: Change the specification method of IRQ to SCIx_IRQ_MUXED
2012-04-13 3:14 [PATCH 2/4] sh: sh4: Change the specification method of IRQ to SCIx_IRQ_MUXED Nobuhiro Iwamatsu
2012-05-18 9:11 ` Paul Mundt
@ 2012-05-22 6:22 ` Nobuhiro Iwamatsu
1 sibling, 0 replies; 3+ messages in thread
From: Nobuhiro Iwamatsu @ 2012-05-22 6:22 UTC (permalink / raw)
To: linux-sh
2012/5/18 Paul Mundt <lethal@linux-sh.org>:
> On Fri, Apr 13, 2012 at 12:14:01PM +0900, Nobuhiro Iwamatsu wrote:
>> Some SCIF devices specify the same IRQ. We can use SCIx_IRQ_MUXED for this.
>> And change use to evt2irq(), without specifying the value of IRQ directly.
>> This is correction to the SH4 series.
>>
>> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
>> ---
>> arch/sh/kernel/cpu/sh4/setup-sh7750.c | 4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7750.c b/arch/sh/kernel/cpu/sh4/setup-sh7750.c
>> index 98cc0c7..56b3bdc 100644
>> --- a/arch/sh/kernel/cpu/sh4/setup-sh7750.c
>> +++ b/arch/sh/kernel/cpu/sh4/setup-sh7750.c
>> @@ -43,7 +43,7 @@ static struct plat_sci_port sci_platform_data = {
>> .scscr = SCSCR_TE | SCSCR_RE,
>> .scbrr_algo_id = SCBRR_ALGO_2,
>> .type = PORT_SCI,
>> - .irqs = { 23, 23, 23, 0 },
>> + .irqs = SCIx_IRQ_MUXED(evt2irq(0xE40)),
>> .regshift = 2,
>> };
>>
> 23 is actually 0x4e0, 0xe40 would be 98. Fortunately git merge collided
> on this while I was merging my evt2irq migration branch, as it's unlikely
> anyone would have noticed this for some time..
Sorry, and thanks.
Nobuhiro
--
Nobuhiro Iwamatsu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-22 6:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-13 3:14 [PATCH 2/4] sh: sh4: Change the specification method of IRQ to SCIx_IRQ_MUXED Nobuhiro Iwamatsu
2012-05-18 9:11 ` Paul Mundt
2012-05-22 6:22 ` Nobuhiro Iwamatsu
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).