]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
of: unittest: Add bus address range parsing tests
authorRob Herring <robh@kernel.org>
Tue, 28 Mar 2023 20:15:56 +0000 (15:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2025 12:34:47 +0000 (13:34 +0100)
commit57e3220c28bd7f637b562f0d7aee6cbc6d3f32c5
tree9a8294a9cd10ea9d51eea3288b2411a4b7ee0b85
parent40153aae1cdd1c5a5c0534718af0946b6dcdd12b
of: unittest: Add bus address range parsing tests

[ Upstream commit 6d32dadb11a6480be62c6ada901bbdcbda1775c9 ]

While there are tests for "dma-ranges" helpers, "ranges" is missing any
tests. It's the same underlying code, but for completeness add a test
for "ranges" parsing iterators. This is in preparation to add some
additional "ranges" helpers.

Link: https://lore.kernel.org/r/20230328-dt-address-helpers-v1-1-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/unittest.c