]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: phylink: add debug for phy_config_inband()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 18 Mar 2026 08:27:44 +0000 (08:27 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Mar 2026 01:32:05 +0000 (18:32 -0700)
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) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1w2mFk-0000000DXW2-2PR9@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c

index aba1b35c7cd7e20a03bee951ea82e1f911cefc85..f80cd13c8e3287026a0064747b36311378227c9c 100644 (file)
@@ -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",