mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 07:59:42 -04:00
net: dsa: Improve subordinate PHY error message
It is not very informative to know the DSA master device when a subordinate network device fails to get its PHY setup. Provide the device name and capitalize PHY while we are it. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9d9f95a940
commit
65951a9eb6
@@ -1795,7 +1795,8 @@ int dsa_slave_create(struct dsa_port *port)
|
||||
|
||||
ret = dsa_slave_phy_setup(slave_dev);
|
||||
if (ret) {
|
||||
netdev_err(master, "error %d setting up slave phy\n", ret);
|
||||
netdev_err(master, "error %d setting up slave PHY for %s\n",
|
||||
ret, slave_dev->name);
|
||||
goto out_gcells;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user