]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[dt] Locate parent node at point of use in dt_ioremap()
authorMichael Brown <mcb30@ipxe.org>
Fri, 30 May 2025 15:39:10 +0000 (16:39 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 30 May 2025 15:39:10 +0000 (16:39 +0100)
commitbb2011241fcf15de4edd962fe9656e513ad19174
tree5004c9c6bab354aa04af29891316304c3f550a40
parent1762568ec52b8b29b5bc3b870adb00f46178b51e
[dt] Locate parent node at point of use in dt_ioremap()

We currently rely on the recursive nature of devicetree bus probing to
obtain the region cell size specification from the parent device.
This blocks the possibility of creating a standalone console device
based on /chosen/stdout-path before probing the whole bus.

Fix by using fdt_parent() to locate the parent device at the point of
use within dt_ioremap().

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/devtree.c
src/include/ipxe/devtree.h