]> git.baikalelectronics.ru Git - kernel.git/commit
genirq/msi: Provide msi_domain_alloc/free_irqs_descs_locked()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 6 Dec 2021 22:51:07 +0000 (23:51 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:22:17 +0000 (22:22 +0100)
commitcddd6063e26edb6ae0de212a1222340270daaf91
tree15812104613cdf5f30ea1c14891114d41fc2094b
parent33cae28862378bb91afa5b08080e40a63ab4fe1e
genirq/msi: Provide msi_domain_alloc/free_irqs_descs_locked()

Usage sites which do allocations of the MSI descriptors before invoking
msi_domain_alloc_irqs() require to lock the MSI decriptors accross the
operation.

Provide entry points which can be called with the MSI mutex held and lock
the mutex in the existing entry points.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211206210747.765371053@linutronix.de
include/linux/msi.h
kernel/irq/msi.c