diff mbox series

[RFC,net-next,6/6] net: phylink: debug print

Message ID E1o6XAa-004pW8-IP@rmk-PC.armlinux.org.uk (mailing list archive)
State New, archived
Headers show
Series net: dsa: always use phylink | expand

Commit Message

Russell King (Oracle) June 29, 2022, 12:51 p.m. UTC
---
 drivers/net/phy/phylink.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 23be3f041705..bd493280c8af 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -1378,6 +1378,13 @@  int phylink_set_max_fixed_link(struct phylink *pl)
 	if (pl->cfg_link_an_mode != MLO_AN_PHY || pl->phydev || pl->sfp_bus)
 		return -EBUSY;
 
+	phylink_info(pl, "sif=%*pbl if=%d(%s) cap=%lx\n",
+		     (int)PHY_INTERFACE_MODE_MAX,
+		     pl->config->supported_interfaces,
+		     pl->link_interface,
+		     phy_modes(pl->link_interface),
+		     pl->config->mac_capabilities);
+
 	interface = pl->link_interface;
 	if (interface != PHY_INTERFACE_MODE_NA) {
 		/* Get the speed/duplex capabilities and reduce according to the