Introduce irq_domain_instanciate()
Status from this message: The following commit has been merged into the irq/core 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/23 | irqdomain: Introduce irq_domain_free()kernel/ | +10 | 0 replies | |
| 2/23 | irqdomain: Introduce irq_domain_instantiate()include/ kernel/ | +53 | 0 replies | |
| 3/23 | irqdomain: Fixed unbalanced fwnode get and putkernel/ | +2 | 0 replies | |
| 4/23 | irqdomain: Constify parameter in is_fwnode_irqchip()include/ | +1 | 0 replies | |
| 5/23 | irqdomain: Use a dedicated function to set the domain namekernel/ | +38 | 0 replies | |
| 6/23 | irqdomain: Convert __irq_domain_create() to use struct irq_domain_infokernel/ | +24 | 0 replies | |
| 7/23 | irqdomain: Handle additional domain flags in irq_domain_instantiate()include/ kernel/ | +4 | 0 replies | |
| 8/23 | irqdomain: Handle domain hierarchy parent in irq_domain_instantiate()include/ kernel/ | +13 | 0 replies | |
| 9/23 | irqdomain: Use irq_domain_instantiate() for hierarchy domain creationkernel/ | +5 | 0 replies | |
| 10/23 | irqdomain: Make __irq_domain_create() return an error codekernel/ | +5 | 0 replies | |
| 11/23 | irqdomain: Handle domain bus token in irq_domain_create()include/ kernel/ | +26 | 0 replies | |
| 12/23 | irqdomain: Introduce init() and exit() hooksinclude/ kernel/ | +23 | 0 replies | |
| 13/23 | genirq/generic_chip: Introduce irq_domain_{alloc,remove}_generic_chips()include/ kernel/ | +93 | 0 replies | |
| 14/23 | genirq/generic_chip: Introduce init() and exit() hooksinclude/ kernel/ | +30 | 0 replies | |
| 15/23 | irqdomain: Add support for generic irq chips creation before publishing a domaininclude/ kernel/ | +22 | 0 replies | |
| 16/23 | irqdomain: Add a resource managed version of irq_domain_instantiate()include/ kernel/ | +43 | 0 replies | |
| 17/23 | irqdomain: Convert __irq_domain_add() wrappers to irq_domain_instantiate()include/ | +53 | 0 replies | |
| 18/23 | irqdomain: Convert domain creation functions to irq_domain_instantiate()kernel/ | +21 | 0 replies | |
| 19/23 | um: virt-pci: Use irq_domain_instantiate()arch/ | +10 | 0 replies | |
| 20/23 | irqdomain: Remove __irq_domain_add()include/ kernel/ | +1 | 0 replies | |
| 21/23 | dt-bindings: interrupt-controller: Add support for Microchip LAN966x OICDocumentation/ | +55 | 0 replies | |
| 22/23 | irqchip: Add support for LAN966x OICdrivers/ drivers/ drivers/ | +291 | 0 replies | |
| 23/23 | MAINTAINERS: Add the Microchip LAN966x OIC driver entryMAINTAINERS | +6 | 0 replies |
Reviews trailers per patch
1 of 23 patches has a Reviewed-by or Acked-by.
| Patch | Rob Herring (Arm) |
|---|---|
| 1/23 | |
| 2/23 | |
| 3/23 | |
| 4/23 | |
| 5/23 | |
| 6/23 | |
| 7/23 | |
| 8/23 | |
| 9/23 | |
| 10/23 | |
| 11/23 | |
| 12/23 | |
| 13/23 | |
| 14/23 | |
| 15/23 | |
| 16/23 | |
| 17/23 | |
| 18/23 | |
| 19/23 | |
| 20/23 | |
| 21/23 | R-b |
| 22/23 | |
| 23/23 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/23] Introduce irq_domain_instanciate()
Hi,
Previously, I sent a series related the support for the LAN966x PCI device [1] and in particular several patches related irq domain modifications and the introduction of the Microchip LAN966x OIC driver.
During the review, it was asked to rework the irq domain modification in order to avoid more wrappers and a new irq_domain_instanciate() function was proposed [2].
Also a patch [3] sent by Maitti Vaittinen can benefit of this new irq_domain_instanciate() function. Even if Maitti's use case is not handle yet in this series, it should not be a big deal add support for it on top of this current series.
So, this current series introduces this new irq_domain_instanciate() function and migrate existing wrappers and functions to this new function (patches 1 to 20).
It then introduces the first driver that uses directly this new function with the init()/exit() hooks set: the Microchip LAN966x OIC driver (patches 21 to 23).
Existing irqchip drivers are not converted yet to use this new API function in the same way as the LAN966x OIC driver does.
I prefer to have this series accepted first to avoid doing and re-doing several times the same modifications on existing drivers depending on changes requested on this current series review.
[1] https://lore.kernel.org/lkml/[email protected]/
[2] https://lore.kernel.org/lkml/8734pr5yq1.ffs@tglx/
[3] https://lore.kernel.org/lkml/bbd219c95f4fe88752aee5f21232480fe9b949fb.1717486682.git.mazziesaccount@gmail.com/
Best regards,
Hervé
Herve Codina (23):
irqdomain: Introduce irq_domain_free()
irqdomain: Introduce irq_domain_instantiate()
irqdomain: Fixed unbalanced fwnode get and put
irqdomain: Constify parameter in is_fwnode_irqchip()
irqdomain: Use a dedicated function to set the domain name
irqdomain: Convert __irq_domain_create() to use struct irq_domain_info
irqdomain: Handle additional domain flags in irq_domain_instantiate()
irqdomain: Handle domain hierarchy parent in irq_domain_instantiate()
irqdomain: Use irq_domain_instantiate() for hierarchy domain creation
irqdomain: Make __irq_domain_create() return an error code
irqdomain: Handle domain bus token in irq_domain_create()
irqdomain: Introduce init() and exit() hooks genirq/generic_chip: Introduce
irq_domain_{alloc,remove}_generic_chips()
genirq/generic_chip: Introduce init() and exit() hooks
irqdomain: Add support for generic irq chips creation before
publishing a domain
irqdomain: Add a resource managed version of irq_domain_instantiate()
irqdomain: Convert __irq_domain_add() wrappers to
irq_domain_instantiate()
irqdomain: Convert domain creation functions to
irq_domain_instantiate()
um: virt-pci: Use irq_domain_instantiate()
irqdomain: Remove __irq_domain_add()
dt-bindings: interrupt-controller: Add support for Microchip LAN966x
OIC
irqchip: Add support for LAN966x OIC
MAINTAINERS: Add the Microchip LAN966x OIC driver entry
.../microchip,lan966x-oic.yaml | 55 ++++ MAINTAINERS | 6 + arch/um/drivers/virt-pci.c | 16 +- drivers/irqchip/Kconfig | 12 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-lan966x-oic.c | 278 ++++++++++++++++++ include/linux/irq.h | 33 +++ include/linux/irqdomain.h | 116 +++++++- kernel/irq/devres.c | 41 +++ kernel/irq/generic-chip.c | 111 +++++-- kernel/irq/irqdomain.c | 243 +++++++++------ 11 files changed, 782 insertions(+), 130 deletions(-) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/microchip,lan966x-oic.yaml create mode 100644 drivers/irqchip/irq-lan966x-oic.c
Signature · 1 line
2.45.0