From: Russell King (Oracle) Date: Wed, 18 Mar 2026 08:27:44 +0000 (+0000) Subject: net: phylink: add debug for phy_config_inband() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb2415854f3ba7d95c4f30d259f6f598ab604616;p=thirdparty%2Flinux.git net: phylink: add debug for phy_config_inband() Add debug for the phy_config_inband() call so we can see which inband modes are being configured at the PHY. Signed-off-by: Russell King (Oracle) Reviewed-by: Maxime Chevallier Link: https://patch.msgid.link/E1w2mFk-0000000DXW2-2PR9@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index aba1b35c7cd7e..f80cd13c8e328 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -1341,6 +1341,13 @@ static void phylink_major_config(struct phylink *pl, bool restart, } if (pl->phydev && pl->phy_ib_mode) { + phylink_dbg(pl, "configuring PHY for inband%s%s%s\n", + pl->phy_ib_mode & LINK_INBAND_DISABLE ? + " disable" : "", + pl->phy_ib_mode & LINK_INBAND_ENABLE ? + " enable" : "", + pl->phy_ib_mode & LINK_INBAND_BYPASS ? + " bypass" : ""); err = phy_config_inband(pl->phydev, pl->phy_ib_mode); if (err < 0) { phylink_err(pl, "phy_config_inband: %pe\n",