irqchip/gicv3-its: platform-msi: Refactor its_pmsi_prepare()
authorHanjun Guo <hanjun.guo@linaro.org>
Tue, 7 Mar 2017 12:40:00 +0000 (20:40 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 7 Apr 2017 09:52:18 +0000 (10:52 +0100)
commit9ab460c2289dda9c5b37463f1509553f4b4b0215
tree936331325484ac24d0da8ca2576d2a8c0266ae64
parent8d3554b84af909549f0197ec6e68f24006a9d3f2
irqchip/gicv3-its: platform-msi: Refactor its_pmsi_prepare()

By adding ACPI support for platform MSI, the gicv3 driver has to
provide code to retrieve the dev id through ACPI instead of device
tree bindings; given that its_pmsi_prepare() allows already to get
the dev id but it is OF dependent, factor OF related code out into
a single function to make its_pmsi_prepare() ready to be used with
other firmware interfaces.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
[lorenzo.pieralisi@arm.com: rewrote commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Tested-by: Ming Lei <ming.lei@canonical.com>
Tested-by: Wei Xu <xuwei5@hisilicon.com>
Tested-by: Sinan Kaya <okaya@codeaurora.org>
Cc: Tomasz Nowicki <tn@semihalf.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3-its-platform-msi.c