[PATCH 2/5] usb: dwc2: Replace pr_info with dev_warn
Jules Maselbas
jmaselbas at kalray.eu
Fri Mar 12 16:24:29 GMT 2021
There is no reason to not use dev_warn (as done in Linux), this might
have been unwanted changes made when porting the driver to barebox.
Signed-off-by: Jules Maselbas <jmaselbas at kalray.eu>
---
drivers/usb/dwc2/core.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c
index cc5729ed9..8ec77d68a 100644
--- a/drivers/usb/dwc2/core.c
+++ b/drivers/usb/dwc2/core.c
@@ -696,8 +696,8 @@ int dwc2_core_reset(struct dwc2 *dwc2)
/* Wait for AHB master IDLE state. */
ret = dwc2_wait_bit_set(dwc2, GRSTCTL, GRSTCTL_AHBIDLE, 10000);
if (ret) {
- pr_info("%s: Timeout! Waiting for AHB master IDLE state\n",
- __func__);
+ dwc2_warn(dwc2, "%s: Timeout! Waiting for AHB master IDLE state\n",
+ __func__);
return ret;
}
@@ -728,7 +728,8 @@ int dwc2_core_reset(struct dwc2 *dwc2)
ret = dwc2_wait_bit_clear(dwc2, GRSTCTL, GRSTCTL_CSFTRST, 10000);
if (ret) {
- pr_info("%s: Timeout! Waiting for Core Soft Reset\n", __func__);
+ dwc2_warn(dwc2, "%s: Timeout! Waiting for Core Soft Reset\n",
+ __func__);
return ret;
}
--
2.17.1
More information about the barebox
mailing list