aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2021-10-15 15:15:20 +0200
committerPriyanka Jain <priyanka.jain@nxp.com>2021-11-09 17:18:23 +0530
commit7f79a2c2357d16fc9dd08e761e931a4f2169d625 (patch)
tree12afc7a973a345334f9b78dbb677d9227909fc15
parentf53e102e12c0e1bdda035be1aa5ec59c9787a21a (diff)
downloadu-boot-7f79a2c2357d16fc9dd08e761e931a4f2169d625.zip
u-boot-7f79a2c2357d16fc9dd08e761e931a4f2169d625.tar.gz
u-boot-7f79a2c2357d16fc9dd08e761e931a4f2169d625.tar.bz2
usb: common: silence dubious errors
Both dr_mode and maximum-speed properties are usually optional. Drivers will still try to fetch the properties nonetheless, which leads to error messages, although they are no errors. Change pr_err() to pr_debug(). Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
-rw-r--r--drivers/usb/common/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c
index 43564c9..ee0c064 100644
--- a/drivers/usb/common/common.c
+++ b/drivers/usb/common/common.c
@@ -29,7 +29,7 @@ enum usb_dr_mode usb_get_dr_mode(ofnode node)
dr_mode = ofnode_read_string(node, "dr_mode");
if (!dr_mode) {
- pr_err("usb dr_mode not found\n");
+ pr_debug("usb dr_mode not found\n");
return USB_DR_MODE_UNKNOWN;
}
@@ -64,7 +64,7 @@ enum usb_device_speed usb_get_maximum_speed(ofnode node)
max_speed = ofnode_read_string(node, "maximum-speed");
if (!max_speed) {
- pr_err("usb maximum-speed not found\n");
+ pr_debug("usb maximum-speed not found\n");
return USB_SPEED_UNKNOWN;
}