[PATCH v3 16/30] drivers: usb: Add generic XHCI

Marek Vasut marex at denx.de
Wed Sep 11 10:25:08 CEST 2024


On 9/11/24 8:24 AM, Patrick Rudolph wrote:

[...]

> +static int xhci_usb_of_to_plat(struct udevice *dev)
> +{
> +	struct generic_xhci_plat *plat = dev_get_plat(dev);
> +
> +	/*
> +	 * Get the base address for XHCI controller from the device node
> +	 */
> +	plat->hcd_base = dev_read_addr(dev);
> +	if (plat->hcd_base == FDT_ADDR_T_NONE) {
> +		debug("Can't get the XHCI register base address\n");

dev_dbg(dev, ...)

> +		return -ENXIO;
> +	}
> +
> +	return 0;
> +}
With the above dev_dbg() fixed:

Reviewed-by: Marek Vasut <marex at denx.de>

Thanks !


More information about the U-Boot mailing list