[PATCH] scmi: translate the resource only when livetree is not activated

Tom Rini trini at konsulko.com
Tue Apr 13 16:30:00 CEST 2021


On Tue, Mar 30, 2021 at 03:29:03PM +0200, Patrick Delaunay wrote:

> Call the translation function on the ofnode_read_resource result only
> when the livetree is not activated.
> 
> Today of_address_to_resource() calls ofnode_read_resource() for livetree
> support and fdt_get_resource() when livetree is not supported.
> 
> The fdt_get_resource() doesn't do the address translation
> so when it is required when livetree is activated but this address
> translation is already done by ofnode_read_resource().
> 
> Fixes: 240720e9052f ("firmware: scmi: mailbox/smt agent device")
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210413/99216cc8/attachment.sig>


More information about the U-Boot mailing list