]> www.infradead.org Git - users/jedix/linux-maple.git/commit
of/unittest: Add test that of_address_to_resource() fails on non-translatable address
authorRob Herring (Arm) <robh@kernel.org>
Fri, 10 Jan 2025 21:50:28 +0000 (15:50 -0600)
committerRob Herring (Arm) <robh@kernel.org>
Sun, 12 Jan 2025 21:31:47 +0000 (15:31 -0600)
commit44748065ed321041db6e18cdcaa8c2a9554768ac
tree72b698f5932b2463e53f0f1212fee5936bd03165
parent8600058ba28a7b07660ddcd150372d72fb3bc895
of/unittest: Add test that of_address_to_resource() fails on non-translatable address

of_address_to_resource() on a non-translatable address should return an
error. Additionally, this case also triggers a spurious WARN for
missing #address-cells/#size-cells.

Link: https://lore.kernel.org/r/20250110215030.3637845-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/unittest-data/tests-platform.dtsi
drivers/of/unittest.c