]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/MSI: Allocate MSI device data on first use
authorThomas Gleixner <tglx@linutronix.de>
Wed, 15 Dec 2021 17:19:49 +0000 (18:19 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:16:38 +0000 (22:16 +0100)
commitf384d1318d5892c6e1da212a3b98a593d79e188b
treee9d1f991e721a00e0d021e4d48f4429b4b17d120
parent01344b1e2606df7b7fad5365a13cb08d7729c04d
PCI/MSI: Allocate MSI device data on first use

Allocate MSI device data on first use, i.e. when a PCI driver invokes one
of the PCI/MSI enablement functions.

Add a wrapper function to ensure that the ordering vs. pcim_msi_release()
is correct.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/87r1adrdje.ffs@tglx
drivers/pci/msi/msi.c