From bb2011241fcf15de4edd962fe9656e513ad19174 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 30 May 2025 16:39:10 +0100 Subject: [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 --- src/include/ipxe/devtree.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/include') diff --git a/src/include/ipxe/devtree.h b/src/include/ipxe/devtree.h index 6e9286af4..46d8b5d86 100644 --- a/src/include/ipxe/devtree.h +++ b/src/include/ipxe/devtree.h @@ -25,9 +25,6 @@ struct dt_device { struct dt_driver *driver; /** Driver-private data */ void *priv; - - /** Register cell size specification */ - struct fdt_reg_cells regs; }; /** A devicetree driver */ -- cgit v1.2.3-55-g7522