]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqchip/sg2042-msi: Introduce configurable chipinfo for SG2042
authorInochi Amaoto <inochiama@gmail.com>
Sun, 13 Apr 2025 22:49:14 +0000 (06:49 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 14 Apr 2025 17:35:36 +0000 (19:35 +0200)
commitbad2094e3b1c37c683f183a2a885ea0232ba31e9
tree9f72e2c861490ccc1bb897d4f96146147b8309cd
parentbced55494c23dca674c3c18b4a07ffe7c15000e2
irqchip/sg2042-msi: Introduce configurable chipinfo for SG2042

As the controller on SG2044 uses different msi_parent_ops and a difffernt
irq_chip, it is necessary to provide that information to the probe function.

Add a new chipinfo structure to hold that information, implement the
necessary logic and make SG2042 use it.

Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Chen Wang <wangchen20@iscas.ac.cn> # SG2042
Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
Link: https://lore.kernel.org/all/20250413224922.69719-4-inochiama@gmail.com
drivers/irqchip/irq-sg2042-msi.c