Skip to contentSkip to conversation

net: phylink: add debug for phy_config_inband()

PATCH Applied Russell King (Oracle) 3 participants 3 messages Mar 18 – Mar 21

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/phy/phylink.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/net/phy/phylink.c +7 -0
index 59bcc69b6c39..1c178038e6f1 100644
@@ -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",
Signature · 1 line
2.47.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Russell King (Oracle)

Add debug for the phy_config_inband() call so we can see which inband modes are being configured at the PHY.

Ah, useful indeed !

Maxime

Quoted 22 lines
---
 drivers/net/phy/phylink.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/net/phy/phylink.c +7 -0
index 59bcc69b6c39..1c178038e6f1 100644
@@ -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",
#2 lore raw
In reply to Russell King (Oracle)
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 7 lines · On Wed, 18 Mar 2026 08:27:44 +0000 you wrote:

Add debug for the phy_config_inband() call so we can see which inband modes are being configured at the PHY.

---
 drivers/net/phy/phylink.c | 7 +++++++
 1 file changed, 7 insertions(+)

Here is the summary with links:
- [net-next] net: phylink: add debug for phy_config_inband()

    https://git.kernel.org/netdev/net-next/c/eb2415854f3b

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html