aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel F. Dickinson <cshored@thecshore.com>2018-07-25 19:15:32 -0400
committerJohn Crispin <john@phrozen.org>2018-07-30 10:43:35 +0200
commit0b9f4e880807e3cfd22d12b929202e1edcdc577c (patch)
treebd6a544b1a8f0c7076f2add5490fed273f1d7129
parent2655fbe8efb2a596aa8db92cffa817e3bf0c64ea (diff)
downloadupstream-0b9f4e880807e3cfd22d12b929202e1edcdc577c.tar.gz
upstream-0b9f4e880807e3cfd22d12b929202e1edcdc577c.tar.bz2
upstream-0b9f4e880807e3cfd22d12b929202e1edcdc577c.zip
ar71xx: ag71xx: Add connect message: fixed phy
It's a little noisier but makes it obvious when the ar7240 switch was connected to the MDIO bus, and to which phy device (or the failure to do so). Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
-rw-r--r--target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c
index 223340341f..1683fce882 100644
--- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c
+++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c
@@ -97,6 +97,13 @@ static int ag71xx_phy_connect_fixed(struct ag71xx *ag)
ag->duplex = pdata->duplex;
ag->speed = pdata->speed;
+ if (!ret) {
+ dev_info(dev, "connected to fixed PHY at %s [uid=%08x, driver=%s]\n",
+ phydev_name(ag->phy_dev),
+ ag->phy_dev->phy_id, ag->phy_dev->drv->name);
+ } else {
+ pr_err("Failed to connect to fixed PHY\n");
+ }
return ret;
}