]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
of/address: Add support for 3 address cell bus
authorRob Herring <robh@kernel.org>
Tue, 28 Mar 2023 20:15:58 +0000 (15:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2025 12:34:47 +0000 (13:34 +0100)
commit46dfdb0f933a7e12c7b9dbc73e93ce4be0174a0f
treefe212c3bb61e94d1fdaeefaa68c7a55aa6efdf33
parent57e3220c28bd7f637b562f0d7aee6cbc6d3f32c5
of/address: Add support for 3 address cell bus

[ Upstream commit 3d5089c4263d3594dc055e0f9c5cb990505cdd64 ]

There's a few custom bus bindings (e.g. fsl,qoriq-mc) which use a
3 cell format with custom flags in the high cell. We can match these
buses as a fallback if we didn't match on PCI bus which is the only
standard bus binding with 3 address cells.

Link: https://lore.kernel.org/r/20230328-dt-address-helpers-v1-3-e2456c3e77ab@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Stable-dep-of: 7f05e20b989a ("of: address: Preserve the flags portion on 1:1 dma-ranges mapping")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/of/address.c
drivers/of/unittest-data/tests-address.dtsi
drivers/of/unittest.c