summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-05-22 00:34:10 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-23 09:57:04 +0200
commitb8b5289562908352cdbfaaee9867f562c4746ad7 (patch)
tree5c516c88e1264aa6a299bf66932ffe302cf29a31 /drivers/usb
parent5f2110b07caa1ddbbadc68f1d34e2c60d8c94796 (diff)
downloadbarebox-b8b5289562908352cdbfaaee9867f562c4746ad7.tar.gz
barebox-b8b5289562908352cdbfaaee9867f562c4746ad7.tar.xz
usb: host: ehci: Replace explicit printf() with dev_err()
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-hcd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index a6f497925e..050a3166e3 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -542,7 +542,9 @@ ehci_submit_root(struct usb_device *dev, unsigned long pipe, void *buffer,
case USB_REQ_SET_FEATURE | ((USB_DIR_OUT | USB_RT_PORT) << 8):
case USB_REQ_CLEAR_FEATURE | ((USB_DIR_OUT | USB_RT_PORT) << 8):
if (!port || port > CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS) {
- printf("The request port(%d) is not configured\n", port - 1);
+ dev_err(ehci->dev,
+ "The request port(%d) is not configured\n",
+ port - 1);
return -1;
}
status_reg = (uint32_t *)&ehci->hcor->or_portsc[port - 1];
@@ -972,7 +974,8 @@ disable_periodic(struct ehci_host *ehci)
ret = handshake((uint32_t *)&hcor->or_usbsts,
STS_PSS, 0, 100 * 1000);
if (ret < 0) {
- printf("EHCI failed: timeout when disabling periodic list\n");
+ dev_err(ehci->dev,
+ "EHCI failed: timeout when disabling periodic list\n");
return -ETIMEDOUT;
}
return 0;
@@ -993,7 +996,8 @@ enable_periodic(struct ehci_host *ehci)
ret = handshake((uint32_t *)&hcor->or_usbsts,
STS_PSS, STS_PSS, 100 * 1000);
if (ret < 0) {
- printf("EHCI failed: timeout when enabling periodic list\n");
+ dev_err(ehci->dev,
+ "EHCI failed: timeout when enabling periodic list\n");
return -ETIMEDOUT;
}