[U-Boot] [PATCH v2] drivers: core: Add translation in live tree case

Simon Glass sjg at chromium.org
Thu Dec 14 20:36:48 UTC 2017


+Stephen, Tom

Hi Mario,

I've had to drop this since it breaks tegra. Stephen feels that this
is likely a bug in the patch rather than anything wrong with Tegra. Do
you have any thoughts? I can potentially try things out on the Tegra
boards I have.

Regards,
Simon


On 8 December 2017 at 10:11,  <sjg at google.com> wrote:
> On 23 November 2017 at 23:51, Mario Six <mario.six at gdsys.cc> wrote:
>> 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 at gdsys.cc>
>> ---
>>
>> Changes v1 -> v2:
>> * Added IS_ENABLED(CONFIG_OF_TRANSLATE) case distinction
>>
>> ---
>>  drivers/core/ofnode.c | 8 +++++++-
>>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> Applied to u-boot-dm thanks!


More information about the U-Boot mailing list