platform-msi: Add ABI to show msi_irqs of platform devices
authorBarry Song <song.bao.hua@hisilicon.com>
Fri, 13 Aug 2021 03:56:28 +0000 (15:56 +1200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 24 Aug 2021 07:16:20 +0000 (09:16 +0200)
commit00ed1401a0058e8cca4cc1b6ba14b893e5df746e
tree2e09ec90d8d1f833ae6ed802974d45482aa64880
parent2f170814bdd26289e9daaa4ae359290f854e5dcf
platform-msi: Add ABI to show msi_irqs of platform devices

PCI devices expose the associated MSI interrupts via sysfs, but platform
devices which utilize MSI interrupts do not. This information is important
for user space tools to optimize affinity settings.

Utilize the generic MSI sysfs facility to expose this information for
platform MSI.

Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210813035628.6844-3-21cnbao@gmail.com
Documentation/ABI/testing/sysfs-bus-platform
drivers/base/platform-msi.c