Skip to content

irqchip: Pass platform device to platform drivers

Johan Hovold lkml 1 version Applied

Status from this message: The following commit has been merged into the irq/drivers branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 15 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/11irqchip/bcm2712-mip: Fix OF node reference imbalancedrivers/irqchip/irq-bcm2712-mip.c+0 -11 reply
2/11irqchip/bcm2712-mip: Fix section mismatchdrivers/irqchip/irq-bcm2712-mip.c+1 -11 reply
3/11irqchip/irq-bcm7038-l1: Fix section mismatchdrivers/irqchip/irq-bcm7038-l1.c+4 -51 reply
4/11irqchip/irq-bcm7120-l2: Fix section mismatchdrivers/irqchip/irq-bcm7120-l2.c+5 -91 reply
5/11irqchip/irq-brcmstb-l2: Fix section mismatchdrivers/irqchip/irq-brcmstb-l2.c+4 -81 reply
6/11irqchip/imx-mu-msi: Fix section mismatchdrivers/irqchip/irq-imx-mu-msi.c+6 -90 replies
7/11irqchip/renesas-rzg2l: Fix section mismatchdrivers/irqchip/irq-renesas-rzg2l.c+2 -42 replies
8/11irqchip/starfive-jh8100: Fix section mismatchdrivers/irqchip/irq-starfive-jh8100-intc.c+1 -21 reply
9/11irqchip/qcom-irq-combiner: Fix section mismatchdrivers/irqchip/qcom-irq-combiner.c+1 -10 replies
10/11irqchip: Drop leftover bracketsdrivers/irqchip/irqchip.c+2 -41 reply
11/11irqchip: Pass platform device to platform driversdrivers/irqchip/irq-bcm2712-mip.c drivers/irqchip/irq-bcm7038-l1.c drivers/irqchip/irq-bcm7120-l2.c +11 more+78 -1106 replies

Reviews trailers per patch

9 of 11 patches have a Reviewed-by or Acked-by.

PatchGeert UytterhoevenFlorian FainelliChanghuang Liang
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11
7/11R-b
8/11R-b
9/11
10/11R-b
11/11R-b R-b

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

Read the v1 thread

Cover letter [PATCH 00/11] irqchip: Pass platform device to platform drivers

The IRQCHIP_PLATFORM_DRIVER macros can be used to convert OF irqchip drivers to platform drivers but currently reuse the OF init callback prototype that only takes OF nodes as arguments. This forces drivers to do reverse lookups of their struct devices during probe if they need them for things like dev_printk() and device managed resources.

Half of the drivers doing reverse lookups also currently fail to release the additional reference taken during the lookup, while other drivers have had the reference leak plugged in various ways (e.g. using non-intuitive cleanup constructs which still confuse static checkers).

Switch to using a probe callback that takes a platform device as its first argument to simplify drivers and plug the remaining (mostly benign) reference leaks.

Included are also some related preparatory fixes for an OF node reference imbalance and section mismatches due to misplaced __init markers (in some cases left over from platform driver conversions).

Johan

Johan Hovold (11):
irqchip/bcm2712-mip: Fix OF node reference imbalance irqchip/bcm2712-mip: Fix section mismatch irqchip/irq-bcm7038-l1: Fix section mismatch irqchip/irq-bcm7120-l2: Fix section mismatch irqchip/irq-brcmstb-l2: Fix section mismatch irqchip/imx-mu-msi: Fix section mismatch irqchip/renesas-rzg2l: Fix section mismatch irqchip/starfive-jh8100: Fix section mismatch irqchip/qcom-irq-combiner: Fix section mismatch
irqchip: Drop leftover brackets
irqchip: Pass platform device to platform drivers

 drivers/irqchip/irq-bcm2712-mip.c          | 11 ++-----
 drivers/irqchip/irq-bcm7038-l1.c           | 12 +++----
 drivers/irqchip/irq-bcm7120-l2.c           | 28 +++++-----------
 drivers/irqchip/irq-brcmstb-l2.c           | 25 +++++++--------
 drivers/irqchip/irq-imx-mu-msi.c           | 28 +++++++---------
 drivers/irqchip/irq-mchp-eic.c             |  5 +--
 drivers/irqchip/irq-meson-gpio.c           |  5 +--
 drivers/irqchip/irq-qcom-mpm.c             |  6 ++--
 drivers/irqchip/irq-renesas-rzg2l.c        | 37 ++++++----------------
 drivers/irqchip/irq-renesas-rzv2h.c        | 32 ++++++-------------
 drivers/irqchip/irq-starfive-jh8100-intc.c |  6 ++--
 drivers/irqchip/irqchip.c                  | 10 +++---
 drivers/irqchip/qcom-irq-combiner.c        |  2 +-
 drivers/irqchip/qcom-pdc.c                 |  5 +--
 include/linux/irqchip.h                    |  8 ++++-
 15 files changed, 85 insertions(+), 135 deletions(-)
Signature · 1 line
2.49.1