diff options
author | Rob Herring <[email protected]> | 2023-06-09 12:32:44 -0600 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-06-21 15:10:38 +1000 |
commit | c4ae1799a5a358388acb610512c68666f8758364 (patch) | |
tree | 4100a6743bc5e1f1cfeedb3a9a83914b425b491f /scripts/bpf_doc.py | |
parent | 6f3bdbbeafbbcb1a6540307e4eaee10ecae4f9a5 (diff) |
powerpc: fsl_rio: Use of_range_to_resource() for "ranges" parsing
"ranges" is a standard property with common parsing functions. Users
shouldn't be implementing their own parsing of it. Refactor the FSL RapidIO
"ranges" parsing to use of_range_to_resource() instead.
One change is the original code would look for "#size-cells" and
"#address-cells" in the parent node if not found in the port child
nodes. That is non-standard behavior and not necessary AFAICT. In 2011
in commit 54986964c13c ("powerpc/85xx: Update SRIO device tree nodes")
there was an ABI break. The upstream .dts files have been correct since
at least that point.
Signed-off-by: Rob Herring <[email protected]>
[mpe: Remove now unused "cell" variable]
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
"ranges" is a standard property with common parsing functions. Users
shouldn't be implementing their own parsing of it. Refactor the FSL RapidIO
"ranges" parsing to use of_range_to_resource() instead.
One change is the original code would look for "#size-cells" and
"#address-cells" in the parent node if not found in the port child
nodes. That is non-standard behavior and not necessary AFAICT. In 2011
in commit 54986964c13c ("powerpc/85xx: Update SRIO device tree nodes")
there was an ABI break. The upstream .dts files have been correct since
at least that point.
Signed-off-by: Rob Herring <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions