Skip to contentSkip to conversation

irqchip: renesas-irqc: r8a7795 and generic chip update

PATCH Superseded Magnus Damm 5 participants 11 messages Sep 17, 2015 – Sep 28, 2015

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover irqchip: renesas-irqc: r8a7795 and generic chip update

irqchip: renesas-irqc: r8a7795 and generic chip update

[PATCH 01/03] irqchip: renesas-irqc: Add r8a7795 IRQC DT documentation [PATCH 02/03] irqchip: renesas-irqc: Move over to generic chip [PATCH 03/03] irqchip: renesas-irqc: Enable nested lock

This series updates the IRQC driver with generic chip support including nested locking. Also the DT documentation is extended with r8a7795 support.

---

Written against renesas-drivers-2015-09-08-v4.2

 Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt |    1 
 drivers/irqchip/Kconfig                                                 |    1 
 drivers/irqchip/irq-renesas-irqc.c                                      |   81 +++-------
 3 files changed, 33 insertions(+), 50 deletions(-)
#1 lore raw

PATCH 1/3 irqchip: renesas-irqc: Add r8a7795 IRQC DT documentation

From: Magnus Damm <[email protected]>

Add r8a7795 to the IRQC DT binding document.

---

 Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt |    1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt +1 -0
@@ -10,6 +10,7 @@ Required properties:
     - "renesas,irqc-r8a7792" (R-Car V2H)
     - "renesas,irqc-r8a7793" (R-Car M2-N)
     - "renesas,irqc-r8a7794" (R-Car E2)
+    - "renesas,irqc-r8a7795" (R-Car H3)
 - #interrupt-cells: has to be <2>: an interrupt index and flags, as defined in
   interrupts.txt in this directory
 - clocks: Must contain a reference to the functional clock.
#3 lore raw

PATCH 2/3 irqchip: renesas-irqc: Move over to generic chip

In reply to Magnus Damm

From: Magnus Damm <[email protected]>

Convert the IRQC driver to rely on GENERIC_IRQ_CHIP.

---

 drivers/irqchip/Kconfig            |    1 
 drivers/irqchip/irq-renesas-irqc.c |   79 +++++++++++++-----------------------
 2 files changed, 31 insertions(+), 49 deletions(-)
drivers/irqchip/Kconfig +1 -0
@@ -123,6 +123,7 @@ config RENESAS_INTC_IRQPIN
 
 config RENESAS_IRQC
 	bool
+	select GENERIC_IRQ_CHIP
 	select IRQ_DOMAIN
 
 config ST_IRQCHIP
drivers/irqchip/irq-renesas-irqc.c +30 -49

145 lines not on this page · raw message

#4 lore raw

PATCH 3/3 irqchip: renesas-irqc: Enable nested lock

In reply to Magnus Damm

From: Magnus Damm <[email protected]>

Update the IRQC driver to pass the IRQ_GC_INIT_NESTED_LOCK flag to enable nested locking using the generic irq chip implementation.

---

 drivers/irqchip/irq-renesas-irqc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-renesas-irqc.c +1 -1
@@ -212,7 +212,7 @@ static int irqc_probe(struct platform_de
 
 	ret = irq_alloc_domain_generic_chips(p->irq_domain, p->number_of_irqs,
 					     1, name, handle_level_irq,
-					     0, 0, 0);
+					     0, 0, IRQ_GC_INIT_NESTED_LOCK);
 	if (ret) {
 		dev_err(&pdev->dev, "cannot allocate generic chip\n");
 		goto err3;
#5 lore raw
In reply to Magnus Damm

Hi Magnus,

Quoted 9 lines · Magnus Damm

irqchip: renesas-irqc: r8a7795 and generic chip update

[PATCH 01/03] irqchip: renesas-irqc: Add r8a7795 IRQC DT documentation [PATCH 02/03] irqchip: renesas-irqc: Move over to generic chip [PATCH 03/03] irqchip: renesas-irqc: Enable nested lock

This series updates the IRQC driver with generic chip support including nested locking. Also the DT documentation is extended with r8a7795 support.

Its not entirely clear what the relationship is between these patches nor what the motivation is for the last two patches.

Acked-by on v1 1/3
#2 lore raw

Re: [PATCH 01/03] irqchip: renesas-irqc: Add r8a7795 IRQC DT documentation

In reply to Magnus Damm

Hi Magnus,

Quoted 5 lines · Magnus Damm

From: Magnus Damm <[email protected]>

Add r8a7795 to the IRQC DT binding document.

Perhaps you want to clarify this is called "INTC-EX" (not "IRQC") on R-Car Gen3?

Nevertheless

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#6 lore raw
In reply to Simon Horman

Hi Simon,

Quoted 7 lines · Simon Horman
Quoted 6 lines · Magnus Damm

irqchip: renesas-irqc: r8a7795 and generic chip update

[PATCH 01/03] irqchip: renesas-irqc: Add r8a7795 IRQC DT documentation [PATCH 02/03] irqchip: renesas-irqc: Move over to generic chip [PATCH 03/03] irqchip: renesas-irqc: Enable nested lock

Quoted 6 lines
Quoted 3 lines

This series updates the IRQC driver with generic chip support including nested locking. Also the DT documentation is extended with r8a7795 support.

Its not entirely clear what the relationship is between these patches nor what the motivation is for the last two patches.

Patch 2 is a cleanup/consolidation.

Note that patch 2 will no longer apply, as linux-next now has
- b92f865703e22b42 irqchip: renesas-irqc: Use a separate lockdep class
- 72e56742f6baff5d irqchip: renesas-irqc: Propagate wake-up settings to parent

Patch 3 is the irq_chip_generic way of b92f865703e22b42.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#7 lore raw

Hi Geert,

Quoted 8 lines · On Thursday 17 September 2015 10:31:59 Geert Uytterhoeven wrote:
Quoted 7 lines · Simon Horman
Quoted 6 lines · Magnus Damm

irqchip: renesas-irqc: r8a7795 and generic chip update

[PATCH 01/03] irqchip: renesas-irqc: Add r8a7795 IRQC DT documentation [PATCH 02/03] irqchip: renesas-irqc: Move over to generic chip [PATCH 03/03] irqchip: renesas-irqc: Enable nested lock

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

This series updates the IRQC driver with generic chip support including nested locking. Also the DT documentation is extended with r8a7795 support.

Its not entirely clear what the relationship is between these patches nor what the motivation is for the last two patches.

Patch 2 is a cleanup/consolidation.

In just a few lines, and just for my information, what does generic IRQ chip offers compared to the current implementatoin ?

Quoted 6 lines

Note that patch 2 will no longer apply, as linux-next now has
- b92f865703e22b42 irqchip: renesas-irqc: Use a separate lockdep class
- 72e56742f6baff5d irqchip: renesas-irqc: Propagate wake-up settings to
parent

Patch 3 is the irq_chip_generic way of b92f865703e22b42.

Signature · 3 lines
Regards,

Laurent Pinchart
#8 lore raw
Quoted 15 lines · Laurent Pinchart

Hi Geert,

Quoted 12 lines · On Thursday 17 September 2015 10:31:59 Geert Uytterhoeven wrote:
Quoted 11 lines · Simon Horman
Quoted 9 lines · Magnus Damm

irqchip: renesas-irqc: r8a7795 and generic chip update

[PATCH 01/03] irqchip: renesas-irqc: Add r8a7795 IRQC DT documentation [PATCH 02/03] irqchip: renesas-irqc: Move over to generic chip [PATCH 03/03] irqchip: renesas-irqc: Enable nested lock

This series updates the IRQC driver with generic chip support including nested locking. Also the DT documentation is extended with r8a7795 support.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Its not entirely clear what the relationship is between these patches nor what the motivation is for the last two patches.

Patch 2 is a cleanup/consolidation.

In just a few lines, and just for my information, what does generic IRQ chip offers compared to the current implementatoin ?

Common, i.e. less duplicated code.

Thanks,

tglx

#9 lore raw
In reply to Geert Uytterhoeven
Quoted 15 lines · Geert Uytterhoeven
Quoted 7 lines · Simon Horman
Quoted 6 lines · Magnus Damm

irqchip: renesas-irqc: r8a7795 and generic chip update

[PATCH 01/03] irqchip: renesas-irqc: Add r8a7795 IRQC DT documentation [PATCH 02/03] irqchip: renesas-irqc: Move over to generic chip [PATCH 03/03] irqchip: renesas-irqc: Enable nested lock

Quoted 6 lines
Quoted 3 lines

This series updates the IRQC driver with generic chip support including nested locking. Also the DT documentation is extended with r8a7795 support.

Its not entirely clear what the relationship is between these patches nor what the motivation is for the last two patches.

Quoted 7 lines

Patch 2 is a cleanup/consolidation.

Note that patch 2 will no longer apply, as linux-next now has
- b92f865703e22b42 irqchip: renesas-irqc: Use a separate lockdep class
- 72e56742f6baff5d irqchip: renesas-irqc: Propagate wake-up settings to parent

Patch 3 is the irq_chip_generic way of b92f865703e22b42.

Magnus,

can you please rebase that series to 4.3-rc2, which has the above commits.

Thanks,

tglx

#10 lore raw

Hi Thomas,

Quoted 22 lines · Thomas Gleixner
Quoted 21 lines · Geert Uytterhoeven
Quoted 7 lines · Simon Horman
Quoted 6 lines · Magnus Damm

irqchip: renesas-irqc: r8a7795 and generic chip update

[PATCH 01/03] irqchip: renesas-irqc: Add r8a7795 IRQC DT documentation [PATCH 02/03] irqchip: renesas-irqc: Move over to generic chip [PATCH 03/03] irqchip: renesas-irqc: Enable nested lock

Quoted 6 lines
Quoted 3 lines

This series updates the IRQC driver with generic chip support including nested locking. Also the DT documentation is extended with r8a7795 support.

Its not entirely clear what the relationship is between these patches nor what the motivation is for the last two patches.

Patch 2 is a cleanup/consolidation.

Note that patch 2 will no longer apply, as linux-next now has
- b92f865703e22b42 irqchip: renesas-irqc: Use a separate lockdep class
- 72e56742f6baff5d irqchip: renesas-irqc: Propagate wake-up settings to parent

Quoted 6 lines
Quoted 1 line

Patch 3 is the irq_chip_generic way of b92f865703e22b42.

Magnus,

can you please rebase that series to 4.3-rc2, which has the above commits.

Thanks, I've rebased to v4.3-rc3 and folded together patch 2 and 3 in V2:

[PATCH v2 00/02] irqchip: renesas-irqc: r8a7795 and generic chip update V2

Cheers,

/ magnus