r8a7779_init_irq_extpin
Hi Magnus,
r8a7779_init_irq_extpin() and related code was added in your patch "ARM: shmobile: Use Renesas INTC External IRQ pin driver" but appears to be unused.
Are you still planning to use it?
Hi Simon,
Quoted 7 lines · Simon Horman
Hi Magnus,
r8a7779_init_irq_extpin()and related code was added in your patch "ARM: shmobile: Use Renesas INTC External IRQ pin driver" but appears to be unused.Are you still planning to use it?
Perhaps I'm misunderstanding, but isn't it used by the Marzen board code in:
[PATCH 03/03] ARM: shmobile: INTC External IRQ pin driver on r8a7779
Thanks,
/ magnus
Quoted 5 lines · Magnus Damm
Hi Simon,
Quoted 2 lines · Simon Horman
Hi Magnus,
Quoted 8 lines
Quoted 5 lines
r8a7779_init_irq_extpin()and related code was added in your patch "ARM: shmobile: Use Renesas INTC External IRQ pin driver" but appears to be unused.Are you still planning to use it?
Perhaps I'm misunderstanding, but isn't it used by the Marzen board code in:
[PATCH 03/03] ARM: shmobile: INTC External IRQ pin driver on r8a7779
Thanks. Some how I that portion got lost and isn't present in the tree. I'll post a patch with the missing portions shortly.
Hi Simon,
Quoted 10 lines · Simon Horman
Quoted 9 lines · Magnus Damm
Hi Simon,
Quoted 6 lines · Simon Horman
Hi Magnus,
r8a7779_init_irq_extpin()and related code was added in your patch "ARM: shmobile: Use Renesas INTC External IRQ pin driver" but appears to be unused.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Are you still planning to use it?
Perhaps I'm misunderstanding, but isn't it used by the Marzen board code in:
[PATCH 03/03] ARM: shmobile: INTC External IRQ pin driver on r8a7779Thanks. Some how I that portion got lost and isn't present in the tree. I'll post a patch with the missing portions shortly.
Ok, thanks for dealing with this!
/ magnus
Quoted 15 lines · Magnus Damm
Hi Simon,
Quoted 12 lines · Simon Horman
Quoted 11 lines · Magnus Damm
Hi Simon,
Quoted 7 lines · Simon Horman
Hi Magnus,
r8a7779_init_irq_extpin()and related code was added in your patch "ARM: shmobile: Use Renesas INTC External IRQ pin driver" but appears to be unused.Are you still planning to use it?
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Perhaps I'm misunderstanding, but isn't it used by the Marzen board code in:
[PATCH 03/03] ARM: shmobile: INTC External IRQ pin driver on r8a7779Thanks. Some how I that portion got lost and isn't present in the tree. I'll post a patch with the missing portions shortly.
Ok, thanks for dealing with this!
One more question, is the code in r8a7779_init_irq_extpin() before the call to platform_device_register() needed if irqpin is registered using DT? IF so, perhaps it needs to go into the driver? With a binding?
Quoted 22 lines · Simon Horman
Quoted 21 lines · Magnus Damm
Hi Simon,
Quoted 17 lines · Simon Horman
Quoted 5 lines · Magnus Damm
Hi Simon,
Quoted 2 lines · Simon Horman
Hi Magnus,
Quoted 8 lines
Quoted 5 lines
r8a7779_init_irq_extpin()and related code was added in your patch "ARM: shmobile: Use Renesas INTC External IRQ pin driver" but appears to be unused.Are you still planning to use it?
Perhaps I'm misunderstanding, but isn't it used by the Marzen board code in:
[PATCH 03/03] ARM: shmobile: INTC External IRQ pin driver on r8a7779Thanks. Some how I that portion got lost and isn't present in the tree. I'll post a patch with the missing portions shortly.
Quoted 6 lines
Quoted 1 line
Ok, thanks for dealing with this!
One more question, is the code in
r8a7779_init_irq_extpin()before the call toplatform_device_register()needed if irqpin is registered using DT? IF so, perhaps it needs to go into the driver? With a binding?
Thanks for dealing with DT support of external IRQ signals on r8a7779.
The background is that r8a7779 and many older SH based SoCs allows mode selection of the IRQ0->IRQ3 signals. There are two modes: IRQ mode and IRL mode.
The INTC irqpin driver supports IRQ mode only, and the marzen board seems to want to use IRQ mode for the ethernet driver IRQ signal. Other boards may however want to use IRL mode on r8a7779, and because of that is the r8a7779_init_irq_extpin() function called only for board code that uses IRQ mode. This is how we used to do things on SH too.
Please note that we lack software support for IRL mode. Older SH socs may have used it at some point in history. Which mode to use is however still a choice that the board designer needs to make, and I prefer to make that choice something that should be selected by the board code instead of assuming some configuration that may not be true. Using the INTC irqpin driver in IRL mode is going to result in strange behavior, so let's try to avoid doing that.
The above describes C board code selecting IRQ mode, but in the case of DT support it all becomes slightly more complex.
In the DT case I don't think we should modify any driver. Perhaps it is a good and simple tradeoff to put device data for INTC irqpins in the board DT file for r8a7779 in case IRQ mode is used? Boards using IRL mode simply omit that portion in the DT board file. Other SoCs that cannot select mode of IRQ pins can have their INTC irqpin description in the SoC DTSI file as usual.
Thanks,
/ magnus