]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: core: Add translation in live tree case
authorMario Six <mario.six@gdsys.cc>
Wed, 20 Dec 2017 08:52:12 +0000 (09:52 +0100)
committerSimon Glass <sjg@chromium.org>
Sun, 21 Jan 2018 17:01:02 +0000 (10:01 -0700)
commit286ede6515bdde4550c247f0d08ed28c5dbf8db2
tree71cfa21729ed31a28cdc233f2a0f337347f9086d
parentfa9335a89c61837414e3db27bb85c3c459803ff0
drivers: core: Add translation in live tree case

The function dev_read_addr calls ofnode_get_addr_index in the live tree
case, which does not apply bus translations to the address read from the
device tree. This results in illegal addresses on boards that rely on
bus translations being applied.

Fix this situation by applying bus translations in the live tree case as
well.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Tested-by: Stephen Warren <swarren@nvidia.com>
drivers/core/ofnode.c