Skip to content

genirq: Move irqchip runtime PM over to irq domain

Marc Zyngier linux-arm-kernel linux-gpio linux-mediatek linux-omap lkml 1 version Applied

Status from this message: The following commit has been merged into the irq/irqchip-next branch of irqchip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 13 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/12genirq: Allow the PM device to originate from irq domaininclude/linux/irqdomain.h kernel/irq/chip.c+28 -52 replies
2/12irqchip/gic: Move PM device over to irq domaindrivers/irqchip/irq-gic.c+6 -61 reply
3/12irqchip/renesas-intc-gpio: Move PM device over to irq domaindrivers/irqchip/irq-renesas-intc-irqpin.c+2 -12 replies
4/12irqchip/renesas-irqc: Move PM device over to irq domaindrivers/irqchip/irq-renesas-irqc.c+2 -11 reply
5/12irqchip/imx-intmux: Move PM device over to irq domaindrivers/irqchip/irq-imx-intmux.c+3 -50 replies
6/12gpio: mt7621: Kill parent_device usagedrivers/gpio/gpio-mt7621.c+0 -10 replies
7/12gpio: omap: Move PM device over to irq domaindrivers/gpio/gpio-omap.c+4 -31 reply
8/12gpio: rcar: Move PM device over to irq domaindrivers/gpio/gpio-rcar.c+1 -11 reply
9/12gpio: tpmx86: Move PM device over to irq domaindrivers/gpio/gpio-tqmx86.c+2 -10 replies
10/12pinctrl: npcm: Fix broken references to chip->parent_devicedrivers/pinctrl/nuvoton/pinctrl-npcm7xx.c+12 -131 reply
11/12pinctrl: starfive: Move PM device over to irq domaindrivers/pinctrl/pinctrl-starfive.c+2 -13 replies
12/12genirq: Kill irq_chip::parent_deviceinclude/linux/irq.h kernel/irq/chip.c+0 -50 replies

Reviews trailers per patch

7 of 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEmil Renner BerthingGeert UytterhoevenTony LindgrenBartosz GolaszewskiLinus Walleij
SeriesA-b
1/12R-b T-b T-b
2/12R-b T-b
3/12R-b T-b
4/12R-b T-b
5/12
6/12
7/12T-b
8/12R-b T-b
9/12
10/12A-b
11/12R-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 00/12] genirq: Move irqchip runtime PM over to irq domain

Our irq_chip data structure currently suffers from two problems:

(1) the 'name' field is often dynamically populated with a reference to the underlying HW (DT node dame, for example)

(2) the 'parent_device' which is used to implement runtime PM is also dynamically populated

(3) there is at least one instance of a subsystem messing with the internals of irq_chip structures (gpiochip_set_irq_hooks is what I know about)

These things mean that although the primary use of irq_chip is to only contain function pointers and other *static* information, the above two fields result in these structures being copied in a number of drivers. Eventually, it would be much better if the various drivers would use irq_chip as an 'ops' data structure (potentially made read-only), and keep the dynamic information somewhere more suitable.

For (2) we already have the irqdomain structure that is designed to deal with the context in which interrupts are used, and it makes sense to move the 'parent_device' field over to this structure. This is what this small series is doing, with some minor cleanup on the way.

(1) and (3) will be dealt in separate series (and I don't have a good solution for (3) yet).

Thanks,

	M.

Marc Zyngier (12):
genirq: Allow the PM device to originate from irq domain irqchip/gic: Move PM device over to irq domain irqchip/renesas-intc-gpio: Move PM device over to irq domain irqchip/renesas-irqc: Move PM device over to irq domain irqchip/imx-intmux: Move PM device over to irq domain
gpio: mt7621: Kill parent_device usage
gpio: omap: Move PM device over to irq domain
gpio: rcar: Move PM device over to irq domain
gpio: tpmx86: Move PM device over to irq domain
pinctrl: npcm: Fix broken references to chip->parent_device
pinctrl: starfive: Move PM device over to irq domain
genirq: Kill irq_chip::parent_device

 drivers/gpio/gpio-mt7621.c                |  1 -
 drivers/gpio/gpio-omap.c                  |  7 ++++---
 drivers/gpio/gpio-rcar.c                  |  2 +-
 drivers/gpio/gpio-tqmx86.c                |  3 ++-
 drivers/irqchip/irq-gic.c                 | 12 +++++------
 drivers/irqchip/irq-imx-intmux.c          |  8 +++-----
 drivers/irqchip/irq-renesas-intc-irqpin.c |  3 ++-
 drivers/irqchip/irq-renesas-irqc.c        |  3 ++-
 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 25 +++++++++++------------
 drivers/pinctrl/pinctrl-starfive.c        |  3 ++-
 include/linux/irq.h                       |  2 --
 include/linux/irqdomain.h                 | 10 +++++++++
 kernel/irq/chip.c                         | 20 +++++++++++++-----
 13 files changed, 59 insertions(+), 40 deletions(-)
Signature · 1 line
2.30.2