]> git.baikalelectronics.ru Git - kernel.git/commit
genirq/msi: Consolidate MSI descriptor data
authorThomas Gleixner <tglx@linutronix.de>
Fri, 10 Dec 2021 22:19:12 +0000 (23:19 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:16:40 +0000 (22:16 +0100)
commit855486cc5cf4b8e8ab1af40216d8b0cd61bbf483
treee582cb71146d41968a9c272374390e6977bdfa99
parentc74bc7e527a6d9e4cbf1f46c767ce630deee38a4
genirq/msi: Consolidate MSI descriptor data

All non PCI/MSI usage variants have data structures in struct msi_desc with
only one member: xxx_index. PCI/MSI has a entry_nr member.

Add a common msi_index member to struct msi_desc so all implementations can
share it which allows further consolidation.

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/20211210221814.350967317@linutronix.de
include/linux/msi.h