irqchip: Pass platform device to platform drivers
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
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | irqchip/bcm2712-mip: Fix OF node reference imbalancedrivers/ | +0 | 1 reply | |
| 2/11 | irqchip/bcm2712-mip: Fix section mismatchdrivers/ | +1 | 1 reply | |
| 3/11 | irqchip/irq-bcm7038-l1: Fix section mismatchdrivers/ | +4 | 1 reply | |
| 4/11 | irqchip/irq-bcm7120-l2: Fix section mismatchdrivers/ | +5 | 1 reply | |
| 5/11 | irqchip/irq-brcmstb-l2: Fix section mismatchdrivers/ | +4 | 1 reply | |
| 6/11 | irqchip/imx-mu-msi: Fix section mismatchdrivers/ | +6 | 0 replies | |
| 7/11 | irqchip/renesas-rzg2l: Fix section mismatchdrivers/ | +2 | 2 replies | |
| 8/11 | irqchip/starfive-jh8100: Fix section mismatchdrivers/ | +1 | 1 reply | |
| 9/11 | irqchip/qcom-irq-combiner: Fix section mismatchdrivers/ | +1 | 0 replies | |
| 10/11 | irqchip: Drop leftover bracketsdrivers/ | +2 | 1 reply | |
| 11/11 | irqchip: Pass platform device to platform driversdrivers/ drivers/ drivers/ +11 more | +78 | 6 replies |
Reviews trailers per patch
9 of 11 patches have a Reviewed-by or Acked-by.
| Patch | Geert Uytterhoeven | Florian Fainelli | Changhuang Liang |
|---|---|---|---|
| 1/11 | R-b | ||
| 2/11 | R-b | ||
| 3/11 | R-b | ||
| 4/11 | R-b | ||
| 5/11 | R-b | ||
| 6/11 | |||
| 7/11 | R-b | ||
| 8/11 | R-b | ||
| 9/11 | |||
| 10/11 | R-b | ||
| 11/11 | R-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.
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