diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2018-12-18 18:37:27 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-12-18 18:37:27 +0100 |
commit | ff3730a497cd636e53d4cac5cbb9652b76de9ef5 (patch) | |
tree | a25b8f0759cfdb044474a2d88707fe5e3ac491c0 /drivers/irqchip/irq-gic-common.c | |
parent | c5f48c0a7aa1a8c82d81cdf27e63aa0a5544c6e6 (diff) | |
parent | fb94109b764e7676fa63834b9033ba97175877a0 (diff) | |
download | linux-ff3730a497cd636e53d4cac5cbb9652b76de9ef5.tar.gz linux-ff3730a497cd636e53d4cac5cbb9652b76de9ef5.tar.bz2 linux-ff3730a497cd636e53d4cac5cbb9652b76de9ef5.zip |
Merge tag 'irqchip-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/core
Pull irqchip updates from Marc Zyngier:
- A bunch of new irqchip drivers (RDA8810PL, Madera, imx-irqsteer)
- Updates for new (and old) platforms (i.MX8MQ, F1C100s)
- A number of SPDX cleanups
- A workaround for a very broken GICv3 implementation
- A platform-msi fix
- Various cleanups
Diffstat (limited to 'drivers/irqchip/irq-gic-common.c')
-rw-r--r-- | drivers/irqchip/irq-gic-common.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-gic-common.c b/drivers/irqchip/irq-gic-common.c index 01e673c680cd..3c93c6f4d1f1 100644 --- a/drivers/irqchip/irq-gic-common.c +++ b/drivers/irqchip/irq-gic-common.c @@ -36,6 +36,18 @@ void gic_set_kvm_info(const struct gic_kvm_info *info) gic_kvm_info = info; } +void gic_enable_of_quirks(const struct device_node *np, + const struct gic_quirk *quirks, void *data) +{ + for (; quirks->desc; quirks++) { + if (!of_device_is_compatible(np, quirks->compatible)) + continue; + if (quirks->init(data)) + pr_info("GIC: enabling workaround for %s\n", + quirks->desc); + } +} + void gic_enable_quirks(u32 iidr, const struct gic_quirk *quirks, void *data) { |