]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a4e31f4cb6a93cbf639a15a1a61080e2668aa43
tree2e09ec90d8d1f833ae6ed802974d45482aa64880
parentcd07a82b574767503adbdab1e7e6ee2c58fbc5bc
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