]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqchip/sg2042-msi: Add missing chip flags
authorInochi Amaoto <inochiama@gmail.com>
Sat, 5 Apr 2025 05:56:24 +0000 (13:56 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 7 Apr 2025 07:23:55 +0000 (09:23 +0200)
commit305825d09b15586d2e4311e0c12f10f2a0c18ac5
treefaf0dc5cc0b4d65030e98b7c044013d24ef52432
parent75f8c87555e6ddeff2c49bd47460a71a940edc48
irqchip/sg2042-msi: Add missing chip flags

The sg2042-msi driver uses the fallback callbacks set by
msi_lib_init_dev_msi_info(). commit 1c000dcaad2b ("irqchip/irq-msi-lib:
Optionally set default irq_eoi()/irq_ack()") changed the behavior of the
fallback mechanism by making it opt-in.

The sg2042-msi was not fixed up for this, which causes a NULL pointer
dereference due to the missing irq_ack() callback.

Add the missing chip flag to msi_parent_ops.

Fixes: c66741549424 ("irqchip: Add the Sophgo SG2042 MSI interrupt controller")
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250217085657.789309-3-apatel@ventanamicro.com
Link: https://lore.kernel.org/all/20250405055625.1530180-1-inochiama@gmail.com
drivers/irqchip/irq-sg2042-msi.c