[PATCH v4 6/7] usb: musb-new: Relative ctrl_mod address parsing

Marek Vasut marek.vasut at mailbox.org
Tue Jan 27 22:15:57 CET 2026


On 1/27/26 12:03 PM, Markus Schneider-Pargmann (TI.com) wrote:
> For the upstream DT the ctrl_mod node is using a relative register
> address which is not translated by the current code.
> 
> Make address parsing understand relative addresses.
> 
> Reviewed-by: Mattijs Korpershoek <mkorpershoek at kernel.org>
> Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp at baylibre.com>
> ---
>   drivers/usb/musb-new/ti-musb.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c
> index bcd31adba522fc55190fc43fd2dbd2dec93a2731..d3c3d3057c1df2a5cc62df3c57d8b071bb0f12b8 100644
> --- a/drivers/usb/musb-new/ti-musb.c
> +++ b/drivers/usb/musb-new/ti-musb.c
> @@ -93,7 +93,7 @@ static int ti_musb_of_to_plat(struct udevice *dev)
>   
>   	phys = fdtdec_lookup_phandle(fdt, node, "phys");
>   	ctrl_mod = fdtdec_lookup_phandle(fdt, phys, "ti,ctrl_mod");
> -	plat->ctrl_mod_base = (void *)fdtdec_get_addr(fdt, ctrl_mod, "reg");
> +	plat->ctrl_mod_base = (void *)ofnode_get_addr(offset_to_ofnode(ctrl_mod));
Can you please also clean up the other two fdtdec_* calls above while 
you're at it ? Thanks


More information about the U-Boot mailing list