From: Tom Rini Date: Tue, 13 Apr 2021 10:30:00 -0400 Subject: [PATCH] scmi: translate the resource only when livetree is not activated In-Reply-To: <20210330152813.1.I5743d7539eaa2c2c5a15114120d50ef8eece1431@changeid> References: <20210330152813.1.I5743d7539eaa2c2c5a15114120d50ef8eece1431@changeid> Message-ID: <20210413143000.GO1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: