summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2020-05-21 23:34:06 +0200
committerMarek Vasut <marex@denx.de>2020-05-29 19:23:36 +0200
commit73021d11d4d53cddaa2b1c8e0bd6eb3c79dc7fdc (patch)
treecdfcdbf1471be57d2e3b181522dce8a72f8ba0fc
parent10bcafb8ace549e7e93afa335212a8e9072c5d0c (diff)
downloadu-boot-73021d11d4d53cddaa2b1c8e0bd6eb3c79dc7fdc.tar.gz
u-boot-73021d11d4d53cddaa2b1c8e0bd6eb3c79dc7fdc.tar.xz
u-boot-73021d11d4d53cddaa2b1c8e0bd6eb3c79dc7fdc.zip
usb: ehci-mx6: Print error code on failure
Print the error code if the regulator enable fails, otherwise the error message is rather useless and confusing. Signed-off-by: Marek Vasut <marex@denx.de>
-rw-r--r--drivers/usb/host/ehci-mx6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
index 470eddd0c9..5f84c7b91d 100644
--- a/drivers/usb/host/ehci-mx6.c
+++ b/drivers/usb/host/ehci-mx6.c
@@ -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;
}
}