genirq/msi: Provide new domain id based interfaces for freeing interrupts
authorThomas Gleixner <tglx@linutronix.de>
Thu, 24 Nov 2022 23:24:33 +0000 (00:24 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 5 Dec 2022 18:21:00 +0000 (19:21 +0100)
commit4cd5f4403f283766f73749c4c936801f58ffe77a
tree72bef97a90c939da3a4c668bb6229e1033e63401
parent40742716f294449549884421170ea18356a2abe8
genirq/msi: Provide new domain id based interfaces for freeing interrupts

Provide two sorts of interfaces to handle the different use cases:

  - msi_domain_free_irqs_range():

Handles a caller defined precise range

  - msi_domain_free_irqs_all():

Frees all interrupts associated to a domain

The latter is useful for device teardown and to handle the legacy MSI support
which does not have any range information available.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124230314.337844751@linutronix.de
include/linux/msi.h
kernel/irq/msi.c