]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: host: ehci-hcd: change trace level for phy errors managed by uclass
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 3 Jul 2020 15:36:43 +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 pr_err can be change to pr_debug.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/usb/host/ehci-hcd.c

index f79f06320bfb4c24953914faa53ad6ad3b0096af..8933f6084394120520c112d93ddcd92629245698 100644 (file)
@@ -1762,13 +1762,13 @@ int ehci_setup_phy(struct udevice *dev, struct phy *phy, int index)
        } else {
                ret = generic_phy_init(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(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(phy);
                }
        }
@@ -1786,13 +1786,13 @@ int ehci_shutdown_phy(struct udevice *dev, struct phy *phy)
        if (generic_phy_valid(phy)) {
                ret = generic_phy_power_off(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(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;
                }
        }