diff options
| author | Serge Semin <fancer.lancer@gmail.com> | 2023-10-23 20:02:44 +0300 |
|---|---|---|
| committer | Serge Semin <fancer.lancer@gmail.com> | 2026-08-13 20:38:19 +0300 |
| commit | 01260cda90e449d341173748237ee956ea35ca37 (patch) | |
| tree | 977b567ea836a55a724aeb38fe1b783dd61c3d23 | |
| parent | 9991185ee796cae5271bf04a94fa062dbc7acf09 (diff) | |
| download | linux-01260cda90e449d341173748237ee956ea35ca37.tar.gz linux-01260cda90e449d341173748237ee956ea35ca37.zip | |
net: phy: marvell-88x2222: Add faulty side debug printout
At least on debug-stage it gets to be handy to know what side causes the
link being unavailable: host or line side. Add debug printouts activated
depending on the respective conditional statement being true in the
Marvell 88x2222 status read procedure.
Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
| -rw-r--r-- | drivers/net/phy/marvell-88x2222.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/phy/marvell-88x2222.c b/drivers/net/phy/marvell-88x2222.c index cb8025fb43cb..2f6950ce1212 100644 --- a/drivers/net/phy/marvell-88x2222.c +++ b/drivers/net/phy/marvell-88x2222.c @@ -609,11 +609,15 @@ static int mv2222_read_status(struct phy_device *phydev) phydev->speed = SPEED_UNKNOWN; phydev->duplex = DUPLEX_UNKNOWN; - if (!mv2222_iface_is_operational(phydev)) + if (!mv2222_iface_is_operational(phydev)) { + phydev_dbg(phydev, "Host interface isn't operational\n"); return 0; + } - if (!mv2222_link_is_operational(phydev)) + if (!mv2222_link_is_operational(phydev)) { + phydev_dbg(phydev, "Line side isn't operational\n"); return 0; + } if (priv->line_interface == PHY_INTERFACE_MODE_10GBASER) link = mv2222_read_status_10g(phydev); |
