Skip to contentSkip to conversation

irqchip/gic: Drop support for board files

PATCH Applied Marc Zyngier 2 participants 2 messages Mar 15, 2023 – Apr 8, 2023

Subsystems (2)
lore
Share & tools
lore

Marc Zyngier

author maintainer
#0 lore raw

PATCH 1/1 irqchip/gic: Drop support for board files

With the last non-OF, non-ACPI user of the GIC being removed in e73307b9ebc4 ("ARM: cns3xxx: remove entire platform"), we can finally drop the entry point and do some minor cleanup.

We also make the driver depend on CONFIG_OF, which is required even when CONFIG_ACPI is selected.

---
 drivers/irqchip/Kconfig         |  1 +
 drivers/irqchip/irq-gic.c       | 60 ++-------------------------------
 include/linux/irqchip/arm-gic.h |  6 ----
 3 files changed, 4 insertions(+), 63 deletions(-)
drivers/irqchip/Kconfig +1 -0
index 7dc990eb2c9b..b744fd905c92 100644
@@ -7,6 +7,7 @@ config IRQCHIP
 
 config ARM_GIC
 	bool
+	depends on OF
 	select IRQ_DOMAIN_HIERARCHY
 	select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP
 
drivers/irqchip/irq-gic.c +3 -57

96 lines not on this page · raw message

include/linux/irqchip/arm-gic.h +0 -6
index 5686711b0f40..2223f95079ce 100644
@@ -151,12 +151,6 @@ int gic_of_init(struct device_node *node, struct device_node *parent);
  */
 int gic_of_init_child(struct device *dev, struct gic_chip_data **gic, int irq);
 
-/*
- * Legacy platforms not converted to DT yet must use this to init
- * their GIC
- */
-void gic_init(void __iomem *dist , void __iomem *cpu);
-
 void gic_send_sgi(unsigned int cpu_id, unsigned int irq);
 int gic_get_cpu_id(unsigned int cpu);
 void gic_migrate_target(unsigned int new_cpu_id);
Signature · 1 line
2.34.1
#1 lore raw
The following commit has been merged into the irq/irqchip-next branch of irqchip:

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

Commit-ID:     dee234032e767b3d6823fe122517770757306f04
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/dee234032e767b3d6823fe122517770757306f04
Author:        Marc Zyngier <[email protected]>
AuthorDate:    Wed, 15 Mar 2023 13:02:18 
Committer:     Marc Zyngier <[email protected]>
CommitterDate: Sat, 08 Apr 2023 10:50:04 +01:00

irqchip/gic: Drop support for board files

With the last non-OF, non-ACPI user of the GIC being removed in e73307b9ebc4 ("ARM: cns3xxx: remove entire platform"), we can finally drop the entry point and do some minor cleanup.

We also make the driver depend on CONFIG_OF, which is required even when CONFIG_ACPI is selected.

---
 drivers/irqchip/Kconfig         |  1 +-
 drivers/irqchip/irq-gic.c       | 60 +-------------------------------
 include/linux/irqchip/arm-gic.h |  6 +---
 3 files changed, 4 insertions(+), 63 deletions(-)
drivers/irqchip/Kconfig +1 -0
index 7dc990e..b744fd9 100644
@@ -7,6 +7,7 @@ config IRQCHIP
 
 config ARM_GIC
 	bool
+	depends on OF
 	select IRQ_DOMAIN_HIERARCHY
 	select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP
 
drivers/irqchip/irq-gic.c +3 -57

96 lines not on this page · raw message

include/linux/irqchip/arm-gic.h +0 -6
index 5686711..2223f95 100644
@@ -151,12 +151,6 @@ int gic_of_init(struct device_node *node, struct device_node *parent);
  */
 int gic_of_init_child(struct device *dev, struct gic_chip_data **gic, int irq);
 
-/*
- * Legacy platforms not converted to DT yet must use this to init
- * their GIC
- */
-void gic_init(void __iomem *dist , void __iomem *cpu);
-
 void gic_send_sgi(unsigned int cpu_id, unsigned int irq);
 int gic_get_cpu_id(unsigned int cpu);
 void gic_migrate_target(unsigned int new_cpu_id);