]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
genirq/msi: Add .msi_teardown() callback as the reverse of .msi_prepare()
authorMarc Zyngier <maz@kernel.org>
Tue, 13 May 2025 16:31:40 +0000 (17:31 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 14 May 2025 10:36:41 +0000 (12:36 +0200)
commit28026cf2dd84d961a62123b1fa941dc3c2c4a132
treefb821a6f737b3807236fe7ba44a8710b2e9c0a49
parenta1d8a8309367565dc658ae31dcc256beb9f0423b
genirq/msi: Add .msi_teardown() callback as the reverse of .msi_prepare()

While the MSI ops do have a .msi_prepare() callback that is responsible for
setting up the relevant (usually per-device) allocation, there is no
callback reversing this setup.

For this purpose, add .msi_teardown() callback.

In order to avoid breaking the ITS driver that suffers from related issues,
do not call the callback just yet.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250513163144.2215824-2-maz@kernel.org
include/linux/msi.h
kernel/irq/msi.c