diff options
author | Dario Binacchi | 2021-05-01 17:05:26 +0200 |
---|---|---|
committer | Lokesh Vutla | 2021-05-12 16:27:57 +0530 |
commit | a47abd7bf4b87e4bd5cbdaf88bbece6810d8c837 (patch) | |
tree | 041bf77db28e7e3659ee632e08bd104d1bcdd736 /drivers/core/fdtaddr.c | |
parent | 5a6caf916cb302a6b83edce8c60d830d9261956d (diff) |
Revert "fdt: translate address if #size-cells = <0>"
This reverts commit d64b9cdcd475eb7f07b49741ded87e24dae4a5fc.
As pointed by [1] and [2], the reverted patch made every DT 'reg'
property translatable. What the patch was trying to fix was fixed in a
different way from previously submitted patches which instead of
correcting the generic address translation function fixed the issue with
appropriate platform code.
[1] https://patchwork.ozlabs.org/project/uboot/patch/1614324949-61314-1-git-send-email-bmeng.cn@gmail.com/
[2] https://lore.kernel.org/linux-clk/20210402192054.7934-1-dariobin@libero.it/T/
Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/core/fdtaddr.c')
-rw-r--r-- | drivers/core/fdtaddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/fdtaddr.c b/drivers/core/fdtaddr.c index 83a50b6a3a7..b9874c743d1 100644 --- a/drivers/core/fdtaddr.c +++ b/drivers/core/fdtaddr.c @@ -50,7 +50,7 @@ fdt_addr_t devfdt_get_addr_index(const struct udevice *dev, int index) reg += index * (na + ns); - if (ns || gd_size_cells_0()) { + if (ns) { /* * Use the full-fledged translate function for complex * bus setups. |