Skip to content

RFC ARM: at91: move aic driver to drivers/irqchips

Boris BREZILLON linux-arm-kernel linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest10 patches 8 repliesIn review

Changes in v2 from the cover letter

- rework the irq-mux bindings

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10genirq: generic chip: export irq_map_generic_chip functioninclude/linux/irq.h kernel/irq/generic-chip.c+5 -20 replies
2/10irqchip: atmel-aic: add new atmel AIC driverdrivers/irqchip/Makefile drivers/irqchip/irq-atmel-aic.c+852 -00 replies
3/10ARM: at91: introduce OLD_IRQ_AT91 Kconfig optionarch/arm/mach-at91/Kconfig arch/arm/mach-at91/Kconfig.non_dt arch/arm/mach-at91/Makefile+16 -13 replies
4/10ARM: at91: enclose at91_aic_xx calls in IS_ENABLED(CONFIG_OLD_IRQ_AT91) blocksarch/arm/mach-at91/pm.c arch/arm/mach-at91/setup.c+22 -130 replies
5/10ARM: at91: make use of the new AIC driver for dt enabled boardsarch/arm/mach-at91/Kconfig arch/arm/mach-at91/board-dt-rm9200.c arch/arm/mach-at91/board-dt-sam9.c +1 more+7 -432 replies
6/10irqchip: atmel-aic: move binding doc to interrupt-controller directoryDocumentation/devicetree/bindings/interrupt-controller/atmel,aic.txt+0 -00 replies
7/10irqchip: atmel-aic: document new dt properties and children nodesDocumentation/devicetree/bindings/interrupt-controller/atmel,aic.txt+41 -13 replies
8/10ARM: at91: remove old irq materialarch/arm/mach-at91/irq.c+6 -2640 replies
9/10ARM: at91/dt: add new AIC irq mux definitions for sam9x5 SoCsarch/arm/boot/dts/at91sam9x5.dtsi+108 -00 replies
10/10ARM: at91/dt: add new AIC irq mux definitions for sama5 SoCsarch/arm/boot/dts/sama5d3.dtsi arch/arm/boot/dts/sama5d3_tcb1.dtsi+57 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH v2 00/10] ARM: at91: move aic driver to drivers/irqchips

Hello,

This series is a proposal to move AIC driver to the irqchip directory.

It also changes the implementation design of the interrupt controller in several ways:
- make use of the generic chip framework whenever possible
- add support for irq muxing definition to prevent spurious interrupts during system startup (see https://lkml.org/lkml/2013/3/8/175)
- only support dt enabled boards

Best Regards,

Boris

Changes since v1:
- rework the irq-mux bindings

Boris BREZILLON (10):
genirq: generic chip: export irq_map_generic_chip function
irqchip: atmel-aic: add new atmel AIC driver
ARM: at91: introduce OLD_IRQ_AT91 Kconfig option
ARM: at91: enclose at91_aic_xx calls in
IS_ENABLED(CONFIG_OLD_IRQ_AT91) blocks
ARM: at91: make use of the new AIC driver for dt enabled boards
irqchip: atmel-aic: move binding doc to interrupt-controller
directory
irqchip: atmel-aic: document new dt properties and children nodes
ARM: at91: remove old irq material
ARM: at91/dt: add new AIC irq mux definitions for sam9x5 SoCs
ARM: at91/dt: add new AIC irq mux definitions for sama5 SoCs

 .../devicetree/bindings/arm/atmel-aic.txt          |   42 -
 .../bindings/interrupt-controller/atmel,aic.txt    |   82 ++
 arch/arm/boot/dts/at91sam9x5.dtsi                  |  108 +++
 arch/arm/boot/dts/sama5d3.dtsi                     |   37 +
 arch/arm/boot/dts/sama5d3_tcb1.dtsi                |   20 +
 arch/arm/mach-at91/Kconfig                         |   11 +
 arch/arm/mach-at91/Kconfig.non_dt                  |    7 +
 arch/arm/mach-at91/Makefile                        |    3 +-
 arch/arm/mach-at91/board-dt-rm9200.c               |   13 -
 arch/arm/mach-at91/board-dt-sam9.c                 |   14 -
 arch/arm/mach-at91/board-dt-sama5.c                |   13 -
 arch/arm/mach-at91/irq.c                           |  270 +------
 arch/arm/mach-at91/pm.c                            |   32 +-
 arch/arm/mach-at91/setup.c                         |    3 +-
 drivers/irqchip/Makefile                           |    1 +
 drivers/irqchip/irq-atmel-aic.c                    |  851 ++++++++++++++++++++
 include/linux/irq.h                                |    2 +
 kernel/irq/generic-chip.c                          |    5 +-
 18 files changed, 1152 insertions(+), 362 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/atmel-aic.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/atmel,aic.txt
 create mode 100644 drivers/irqchip/irq-atmel-aic.c
Signature · 1 line
1.7.9.5