From patchwork Tue Feb 18 08:38:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Delaunay X-Patchwork-Id: 236470 List-Id: U-Boot discussion From: patrick.delaunay at st.com (Patrick Delaunay) Date: Tue, 18 Feb 2020 09:38:30 +0100 Subject: [PATCH v2 2/8] usb: gadget: dwc2: change trace level for phy errors managed by uclass In-Reply-To: <20200218083836.6369-1-patrick.delaunay@st.com> References: <20200218083836.6369-1-patrick.delaunay@st.com> Message-ID: <20200218083836.6369-2-patrick.delaunay@st.com> As the error message is now displayed by generic phy functions, the dev_err can be change to dev_dbg. Signed-off-by: Patrick Delaunay --- Changes in v2: None drivers/usb/gadget/dwc2_udc_otg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index 496abf38e7..cfe564432f 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/usb/gadget/dwc2_udc_otg.c @@ -983,7 +983,7 @@ int dwc2_phy_setup(struct udevice *dev, struct phy **array, int *num_phys) for (i = 0; i < count; i++) { ret = generic_phy_init(&usb_phys[i]); if (ret) { - dev_err(dev, "Can't init USB PHY%d for %s\n", + dev_dbg(dev, "Can't init USB PHY%d for %s\n", i, dev->name); goto phys_init_err; } @@ -992,7 +992,7 @@ int dwc2_phy_setup(struct udevice *dev, struct phy **array, int *num_phys) for (i = 0; i < count; i++) { ret = generic_phy_power_on(&usb_phys[i]); if (ret) { - dev_err(dev, "Can't power USB PHY%d for %s\n", + dev_dbg(dev, "Can't power USB PHY%d for %s\n", i, dev->name); goto phys_poweron_err; } @@ -1030,7 +1030,7 @@ void dwc2_phy_shutdown(struct udevice *dev, struct phy *usb_phys, int num_phys) ret = generic_phy_power_off(&usb_phys[i]); ret |= generic_phy_exit(&usb_phys[i]); if (ret) { - dev_err(dev, "Can't shutdown USB PHY%d for %s\n", + dev_dbg(dev, "Can't shutdown USB PHY%d for %s\n", i, dev->name); } }