diff options
author | Nicolas Saenz Julienne <nsaenzjulienne@suse.de> | 2020-08-03 17:25:47 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-08-04 01:24:49 +0300 |
commit | bda2127827e9dd2781ae095cda0b8e5bf685c458 (patch) | |
tree | 409996641797fe64e8d9097ecf1c80fccf234456 /drivers/of/resolver.c | |
parent | 7cc3d5020bdaaa9ca216081be93c51db3546e199 (diff) | |
download | linux-bda2127827e9dd2781ae095cda0b8e5bf685c458.tar.xz |
of: unittest: Use bigger address cells to catch parser regressions
Getting address and size cells for dma-ranges/ranges parsing is tricky
and shouldn't rely on the node's count_cells() method. The function
starts looking for cells on the parent node, as its supposed to work
with device nodes, which doesn't work when input with bus nodes, as
generally done when parsing ranges.
Add test to catch regressions on that specific quirk as developers will
be tempted to edit it out in favor of the default method.
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/9200970a917a9cabdc5b17483b5a8725111eb9d0.camel@suse.de
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/resolver.c')
0 files changed, 0 insertions, 0 deletions