diff options
author | Rob Herring (Arm) <robh@kernel.org> | 2025-01-10 22:50:29 +0100 |
---|---|---|
committer | Rob Herring (Arm) <robh@kernel.org> | 2025-01-12 22:31:47 +0100 |
commit | 6e5773d52f4a2d9c80692245f295069260cff6fc (patch) | |
tree | 3898008db5376e66324b89ba70e8bee4b0161e35 /crypto | |
parent | of/unittest: Add test that of_address_to_resource() fails on non-translatable... (diff) | |
download | linux-6e5773d52f4a2d9c80692245f295069260cff6fc.tar.xz linux-6e5773d52f4a2d9c80692245f295069260cff6fc.zip |
of/address: Fix WARN when attempting translating non-translatable addresses
The recently added WARN() for deprecated #address-cells and #size-cells
triggered a WARN when of_platform_populate() (which calls
of_address_to_resource()) is used on nodes with non-translatable
addresses. This case is expected to return an error.
Rework the bus matching to allow no match and make the default require
an #address-cells property. That should be safe to do as any platform
missing #address-cells would have a warning already.
Fixes: 045b14ca5c36 ("of: WARN on deprecated #address-cells/#size-cells handling")
Tested-by: Sean Anderson <sean.anderson@linux.dev>
Link: https://lore.kernel.org/r/20250110215030.3637845-2-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions