]> 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>
Thu, 23 Jan 2025 16:15:56 +0000 (17:15 +0100)
commitb3f6bed9bf619d77464f0a2b4fa89f58a84213db
tree7fcc42e3b6af03962a341e65f80769aa598aca2e
parentbce3629a9e53356bb27308aea145f34af1c75e82
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