]> git.baikalelectronics.ru Git - uboot.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)
commit69fa6bfe963fb3df15f70fdc8a47baa789c4ef65
tree71cfa21729ed31a28cdc233f2a0f337347f9086d
parent5fa675ae6e1380f0e62b5f4fe0f99ae82394dc1a
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