summaryrefslogtreecommitdiffstats
path: root/drivers/usb/imx/chipidea-imx.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-08-16 09:54:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-07 11:13:58 +0100
commitd35fa7f26dc610db2f1b49e84e5b7cd47de8c688 (patch)
treefa9cf77acf8a5d417360eefe945e1e262a28c8aa /drivers/usb/imx/chipidea-imx.c
parentdb4842821650a0efd1049c875f5274a3dcfc786a (diff)
downloadbarebox-d35fa7f26dc610db2f1b49e84e5b7cd47de8c688.tar.gz
barebox-d35fa7f26dc610db2f1b49e84e5b7cd47de8c688.tar.xz
usb: chipidea i.MX: always print an error message when ULPI fails
The ULPI code does not print a message when the operation times out. Add one to the caller so that he gets an idea that something is going wrong. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/imx/chipidea-imx.c')
-rw-r--r--drivers/usb/imx/chipidea-imx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea-imx.c
index c81c10df4c..dfaf59099e 100644
--- a/drivers/usb/imx/chipidea-imx.c
+++ b/drivers/usb/imx/chipidea-imx.c
@@ -44,6 +44,9 @@ static int imx_chipidea_port_init(void *drvdata)
dev_dbg(ci->dev, "using ULPI phy\n");
if (IS_ENABLED(CONFIG_USB_ULPI)) {
ret = ulpi_setup(ci->base + 0x170, 1);
+ if (ret)
+ dev_err(ci->dev, "ULPI setup failed with %s\n",
+ strerror(-ret));
} else {
dev_err(ci->dev, "no ULPI support available\n");
ret = -ENODEV;