]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: host: ohci: change trace level for phy errors managed by uclass
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 3 Jul 2020 15:36:42 +0000 (17:36 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 Sep 2020 12:46:32 +0000 (08:46 -0400)
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 <patrick.delaunay@st.com>
drivers/usb/host/ohci-generic.c

index b84bf8ac0f7c22cc6c9f10dac9228461dd276eb2..ed5e500b2c98e88e77f16093ed833ba6f5db1f17 100644 (file)
@@ -41,13 +41,13 @@ static int ohci_setup_phy(struct udevice *dev, int index)
        } else {
                ret = generic_phy_init(&priv->phy);
                if (ret) {
-                       dev_err(dev, "failed to init usb phy\n");
+                       dev_dbg(dev, "failed to init usb phy\n");
                        return ret;
                }
 
                ret = generic_phy_power_on(&priv->phy);
                if (ret) {
-                       dev_err(dev, "failed to power on usb phy\n");
+                       dev_dbg(dev, "failed to power on usb phy\n");
                        return generic_phy_exit(&priv->phy);
                }
        }
@@ -63,13 +63,13 @@ static int ohci_shutdown_phy(struct udevice *dev)
        if (generic_phy_valid(&priv->phy)) {
                ret = generic_phy_power_off(&priv->phy);
                if (ret) {
-                       dev_err(dev, "failed to power off usb phy\n");
+                       dev_dbg(dev, "failed to power off usb phy\n");
                        return ret;
                }
 
                ret = generic_phy_exit(&priv->phy);
                if (ret) {
-                       dev_err(dev, "failed to power off usb phy\n");
+                       dev_dbg(dev, "failed to power off usb phy\n");
                        return ret;
                }
        }