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 <[email protected]>
Thanks !