bus: fsl-mc: fix mmio base address for child DPRCs
authorLaurentiu Tudor <laurentiu.tudor@nxp.com>
Thu, 15 Jul 2021 14:07:18 +0000 (17:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:40:20 +0000 (13:40 +0200)
commite944a221262e9e9f445ce88f79886476d8baec16
treebbcab5e57180e57b49b2408d30ff6636b1da1c4a
parent165c55af5f5f748ffa05b20b6896cef349e16a37
bus: fsl-mc: fix mmio base address for child DPRCs

[ Upstream commit 8990f96a012f42543005b07d9e482694192e9309 ]

Some versions of the MC firmware wrongly report 0 for register base
address of the DPMCP associated with child DPRC objects thus rendering
them unusable. This is particularly troublesome in ACPI boot scenarios
where the legacy way of extracting this base address from the device
tree does not apply.
Given that DPMCPs share the same base address, workaround this by using
the base address extracted from the root DPRC container.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Link: https://lore.kernel.org/r/20210715140718.8513-8-laurentiu.tudor@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bus/fsl-mc/fsl-mc-bus.c