]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: eth-phy: Demote missing phy-handle log message to debug
authorMarek Vasut <marex@denx.de>
Sat, 1 Jan 2022 19:12:23 +0000 (20:12 +0100)
committerRamon Fried <ramon@neureality.ai>
Sat, 15 Jan 2022 16:51:49 +0000 (18:51 +0200)
Reduce the missing phy-handle log message to debug message. It is
possible for ethernet DT node to have no phy-handle e.g. in case
of a fixed-link connection. Furthermore, drop the FEC: prefix,
which is a copy-paste error and rather print the ethernet device
name.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/eth-phy-uclass.c

index a9b358ee2342b9b2ea050ee3fdf8a2d5ab936b61..1f285f7afd20ac749d993678052dd03b659c9d38 100644 (file)
@@ -103,7 +103,7 @@ struct mii_dev *eth_phy_get_mdio_bus(struct udevice *eth_dev)
                        return uc_priv->mdio_bus;
                }
        } else {
-               log_notice("FEC: can't find phy-handle\n");
+               log_debug("Can't find phy-handle for %s\n", eth_dev->name);
        }
 
        return NULL;