[PATCH 2/2] net: phy: Change "PHY not found" message to debug()

Roger Quadros rogerq at kernel.org
Tue Aug 22 14:13:50 CEST 2023


Some boards (e.g. Beagleplay) need multiple attempts to detect the PHY
and the multiple "PHY not found" prints are not nice.

Change them to debug().

Signed-off-by: Roger Quadros <rogerq at kernel.org>
---
 drivers/net/phy/phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index ae21acb059..3a524bcd81 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -928,7 +928,7 @@ struct phy_device *phy_connect(struct mii_dev *bus, int addr,
 	if (phydev)
 		phy_connect_dev(phydev, dev, interface);
 	else
-		printf("Could not get PHY for %s: addr %d\n", bus->name, addr);
+		debug("Could not get PHY for %s: addr %d\n", bus->name, addr);
 	return phydev;
 }
 
-- 
2.34.1



More information about the U-Boot mailing list