@@ -448,7 +448,7 @@ static int mx6_init_after_reset(struct ehci_ctrl *dev)
(type == USB_INIT_DEVICE) ?
false : true);
if (ret && ret != -ENOSYS) {
- puts("Error enabling VBUS supply\n");
+ printf("Error enabling VBUS supply (ret=%i)\n", ret);
return ret;
}
}
@@ -615,7 +615,7 @@ static int ehci_usb_probe(struct udevice *dev)
(type == USB_INIT_DEVICE) ?
false : true);
if (ret && ret != -ENOSYS) {
- puts("Error enabling VBUS supply\n");
+ printf("Error enabling VBUS supply (ret=%i)\n", ret);
return ret;
}
}
Print the error code if the regulator enable fails, otherwise the error message is rather useless and confusing. Signed-off-by: Marek Vasut <marex at denx.de> --- drivers/usb/host/ehci-mx6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)