]> git.baikalelectronics.ru Git - kernel.git/commit
device: Add device:: Msi_data pointer and struct msi_device_data
authorThomas Gleixner <tglx@linutronix.de>
Fri, 10 Dec 2021 22:18:55 +0000 (23:18 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:16:38 +0000 (22:16 +0100)
commitf7a0eb31eb008a6dca1c2e8f7cc28ea413f639b7
treef6177388fe82c29084b7319f24818bc704f86d5d
parent3f06f0f5016be2726e07076ca0e4d3716276783b
device: Add device:: Msi_data pointer and struct msi_device_data

Create struct msi_device_data and add a pointer of that type to struct
dev_msi_info, which is part of struct device. Provide an allocator function
which can be invoked from the MSI interrupt allocation code pathes.

Add a properties field to the data structure as a first member so the
allocation size is not zero bytes. The field will be uses later on.

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>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211210221813.676660809@linutronix.de
include/linux/device.h
include/linux/msi.h
kernel/irq/msi.c