projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
635a85a
)
net: phylink: add phy change pause mode debug
author
Russell King (Oracle)
<rmk+kernel@armlinux.org.uk>
Tue, 20 Jul 2021 11:15:20 +0000
(12:15 +0100)
committer
David S. Miller
<davem@davemloft.net>
Tue, 20 Jul 2021 14:22:09 +0000
(07:22 -0700)
Augment the phy link debug prints with the pause state.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/phylink.c
b/drivers/net/phy/phylink.c
index eb29ef53d971d09434c63a6c4b20ee85e8799616..728eab380fd375cd3c0426050f789bd07fe4fc87 100644
(file)
--- a/
drivers/net/phy/phylink.c
+++ b/
drivers/net/phy/phylink.c
@@
-942,10
+942,11
@@
static void phylink_phy_change(struct phy_device *phydev, bool up)
phylink_run_resolve(pl);
- phylink_dbg(pl, "phy link %s %s/%s/%s\n", up ? "up" : "down",
+ phylink_dbg(pl, "phy link %s %s/%s/%s
/%s
\n", up ? "up" : "down",
phy_modes(phydev->interface),
phy_speed_to_str(phydev->speed),
- phy_duplex_to_str(phydev->duplex));
+ phy_duplex_to_str(phydev->duplex),
+ phylink_pause_to_str(pl->phy_state.pause));
}
static int phylink_bringup_phy(struct phylink *pl, struct phy_device *phy,