Skip to contentSkip to conversation

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

PATCH In review Magnus Damm 3 participants 6 messages Sep 28, 2015 – Sep 29, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

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

[PATCH v2 01/02] irqchip: renesas-irqc: Add r8a7795 INTC-EX DT documentation [PATCH v2 02/02] irqchip: renesas-irqc: Move over to nested generic chip

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

---

Written against v4.3-rc3, thanks to Geert and Tglx for their help!

 Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt |    1 
 drivers/irqchip/Kconfig                                                 |    1 
 drivers/irqchip/irq-renesas-irqc.c                                      |   86 +++-------
#1 lore raw

PATCH v2 1/2 irqchip: renesas-irqc: Add r8a7795 INTC-EX DT documentation

From: Magnus Damm <[email protected]>

For some reason the name of the external interrupt controller has changed name with r8a7795, so use "intc-ex" instead of "irqc" as r8a7795 compat string to follow the friendly documentation.

---

Changes since V1:
- Use "intc-ex" instead of "irqc" to follow the data sheet.
- Added ack from Geert.

 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,intc-ex-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.
Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH v2 01/02] irqchip: renesas-irqc: Add r8a7795 INTC-EX DT documentation

Quoted 8 lines · Magnus Damm

From: Magnus Damm <[email protected]>

For some reason the name of the external interrupt controller has changed name with r8a7795, so use "intc-ex" instead of "irqc" as r8a7795 compat string to follow the friendly documentation.

Quoted 20 lines

---

Changes since V1:
- Use "intc-ex" instead of "irqc" to follow the data sheet.
- Added ack from Geert.

 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,intc-ex-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

[tip:irq/core] irqchip/renesas-irqc: Add r8a7795 INTC-EX DT documentation

In reply to Magnus Damm
irqchip/renesas-irqc: Add r8a7795 INTC-EX DT documentation
Commit-ID:  e7dbe2da5e8e247c6e62a0894935d94d7153ed16
Gitweb:     http://git.kernel.org/tip/e7dbe2da5e8e247c6e62a0894935d94d7153ed16
Author:     Magnus Damm <[email protected]>
AuthorDate: Mon, 28 Sep 2015 18:42:28 +0900
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Tue, 29 Sep 2015 20:41:00 +0200

irqchip/renesas-irqc: Add r8a7795 INTC-EX DT documentation

For some reason the name of the external interrupt controller has changed name with r8a7795, so use "intc-ex" instead of "irqc" as r8a7795 compat string to follow the friendly documentation.

---
 Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt +1 -0
index 63633bd..ae5054c 100644
@@ -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,intc-ex-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.
#4 lore raw

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

In reply to Magnus Damm

From: Magnus Damm <[email protected]>

Convert the IRQC driver to rely on GENERIC_IRQ_CHIP and set IRQ_GC_INIT_NESTED_LOCK to enable nested locking.

---

Changes since V1:
- rebased on top of v4.3-rc3
- folded in the IRQ_GC_INIT_NESTED_LOCK bits

 drivers/irqchip/Kconfig            |    1 
 drivers/irqchip/irq-renesas-irqc.c |   86 ++++++++++++------------------------
 2 files changed, 31 insertions(+), 56 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 -56

152 lines not on this page · raw message

#5 lore raw

[tip:irq/core] irqchip/renesas-irqc: Move over to nested generic chip

irqchip/renesas-irqc: Move over to nested generic chip
Commit-ID:  99c221df33fbfa1b30e15dee879eb0a9ae1be353
Gitweb:     http://git.kernel.org/tip/99c221df33fbfa1b30e15dee879eb0a9ae1be353
Author:     Magnus Damm <[email protected]>
AuthorDate: Mon, 28 Sep 2015 18:42:37 +0900
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Tue, 29 Sep 2015 20:41:00 +0200

irqchip/renesas-irqc: Move over to nested generic chip

Convert the IRQC driver to rely on GENERIC_IRQ_CHIP and set IRQ_GC_INIT_NESTED_LOCK to enable nested locking.

---
 drivers/irqchip/Kconfig            |  1 +
 drivers/irqchip/irq-renesas-irqc.c | 86 +++++++++++++-------------------------
 2 files changed, 31 insertions(+), 56 deletions(-)
drivers/irqchip/Kconfig +1 -0
index 27b52c8..67d8027 100644
@@ -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 -56

152 lines not on this page · raw message