From: Michael Walle <michael@walle.cc>
To: u-boot@lists.denx.de
Cc: Marek Vasut <marex@denx.de>, Simon Glass <sjg@chromium.org>,
Ran Wang <ran.wang_1@nxp.com>, Michael Walle <michael@walle.cc>
Subject: [PATCH v2 4/9] usb: common: silence dubious errors
Date: Fri, 15 Oct 2021 15:15:20 +0200 [thread overview]
Message-ID: <20211015131525.721323-5-michael@walle.cc> (raw)
In-Reply-To: <20211015131525.721323-1-michael@walle.cc>
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>
---
drivers/usb/common/common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c
index 43564c9fba..ee0c064f1f 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;
}
--
2.30.2
next prev parent reply other threads:[~2021-10-15 13:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-15 13:15 [PATCH v2 0/9] usb: dwc3: add Layerscape SoC support Michael Walle
2021-10-15 13:15 ` [PATCH v2 1/9] dm: core: add ofnode_for_each_compatible_node() Michael Walle
2021-10-15 13:15 ` [PATCH v2 2/9] test: dm: add test for ofnode_for_each_compatible_node() Michael Walle
2021-10-24 19:53 ` Simon Glass
2021-10-15 13:15 ` [PATCH v2 3/9] armv8: fsl-layerscape: rework the dwc3 snooping enable code Michael Walle
2021-10-15 13:15 ` Michael Walle [this message]
2021-10-24 19:53 ` [PATCH v2 4/9] usb: common: silence dubious errors Simon Glass
2021-10-15 13:15 ` [PATCH v2 5/9] usb: dwc3: Add frame length adjustment quirk Michael Walle
2021-10-15 13:15 ` [PATCH v2 6/9] usb: dwc3: Enable undefined length INCR burst type Michael Walle
2021-10-15 13:15 ` [PATCH v2 7/9] usb: dwc3: add layerscape support Michael Walle
2021-10-15 13:15 ` [PATCH v2 8/9] board: sl28: switch to dwc3 driver Michael Walle
2021-10-15 13:15 ` [PATCH v2 9/9] board: sl28: enable USB periheral support and gadgets Michael Walle
2021-10-21 7:21 ` [PATCH v2 0/9] usb: dwc3: add Layerscape SoC support Michael Walle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211015131525.721323-5-michael@walle.cc \
--to=michael@walle.cc \
--cc=marex@denx.de \
--cc=ran.wang_1@nxp.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).