]> git.ipfire.org Git - thirdparty/linux.git/commit
irqchip/irq-msi-lib: Optionally set default irq_eoi()/irq_ack()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 17 Feb 2025 08:56:48 +0000 (14:26 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 Feb 2025 14:19:26 +0000 (15:19 +0100)
commit1c000dcaad2bef20189f3868207f515ef4b637ee
tree14f06a8e60f0cc2adbae7402fb8b2373073c6b05
parent999f458c1771354371ba367dd84f55f9a62a4233
irqchip/irq-msi-lib: Optionally set default irq_eoi()/irq_ack()

msi_lib_init_dev_msi_info() sets the default irq_eoi()/irq_ack() callbacks
unconditionally. This is correct for all existing users, but prevents the
IMSIC driver to be moved to the MSI library implementation.

Introduce chip_flags in struct msi_parent_ops, which instruct the library
to selectively set the callbacks depending on the flags, and update all
current users to set them.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250217085657.789309-3-apatel@ventanamicro.com
drivers/irqchip/irq-gic-v2m.c
drivers/irqchip/irq-gic-v3-its-msi-parent.c
drivers/irqchip/irq-gic-v3-mbi.c
drivers/irqchip/irq-imx-mu-msi.c
drivers/irqchip/irq-loongson-pch-msi.c
drivers/irqchip/irq-msi-lib.c
drivers/irqchip/irq-mvebu-gicp.c
drivers/irqchip/irq-mvebu-odmi.c
drivers/irqchip/irq-mvebu-sei.c
include/linux/msi.h