driver core: platform: Add devm_platform_get_irqs_affinity()
authorJohn Garry <john.garry@huawei.com>
Wed, 2 Dec 2020 10:36:56 +0000 (18:36 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Dec 2020 14:47:51 +0000 (14:47 +0000)
commite15f2fa959f2cce8a05e8e3a596e75d068cd42c5
tree6d5ae39c5e3cbd1d206e288d5d328e9392c5aa4c
parent1c3f69b4543af0aad514c127298e5ea40392575d
driver core: platform: Add devm_platform_get_irqs_affinity()

Drivers for multi-queue platform devices may also want managed interrupts
for handling HW queue completion interrupts, so add support.

The function accepts an affinity descriptor pointer, which covers all IRQs
expected for the device.

The function is devm class as the only current in-tree user will also use
devm method for requesting the interrupts; as such, the function is made
as devm as it can ensure ordering of freeing the irq and disposing of the
mapping.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1606905417-183214-5-git-send-email-john.garry@huawei.com
drivers/base/platform.c
include/linux/platform_device.h