phy: don't spam console if phys property is absent in device node
authorRoger Quadros <rogerq@kernel.org>
Tue, 3 Dec 2024 20:57:36 +0000 (22:57 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 19 Dec 2024 00:58:59 +0000 (18:58 -0600)
In generic_phy_get_bulk(), if 'phys' property is absent in
the device node then it is not an error condition.

Change print message verbosity to debug to avoid spamming
console in such cases.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
drivers/phy/phy-uclass.c

index 777d952..714be12 100644 (file)
@@ -415,7 +415,7 @@ int generic_phy_get_bulk(struct udevice *dev, struct phy_bulk *bulk)
        if (!dev_read_prop(dev, "phys", NULL)) {
                phydev = dev->parent;
                if (!dev_read_prop(phydev, "phys", NULL)) {
-                       pr_err("%s : no phys property\n", __func__);
+                       pr_debug("%s : no phys property\n", __func__);
                        return 0;
                }
        }