9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2013-08-16 09:54:00 +02:00
parent db48428216
commit d35fa7f26d
1 changed files with 3 additions and 0 deletions

View File

@ -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;