Skip to contentSkip to conversation

net: phylink: add debug print for empty posssible_interfaces

PATCH Applied Russell King (Oracle) 3 participants 3 messages Apr 28, 2024 – Apr 30, 2024

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

PATCH 1/1 net: phylink: add debug print for empty posssible_interfaces

Add a debugging print in phylink_validate_phy() when we detect that the PHY has not supplied a possible_interfaces bitmap.

---
 drivers/net/phy/phylink.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/phy/phylink.c +3 -0
index 0e692a3bcf1a..b7e5c669dc8e 100644
@@ -1838,6 +1838,9 @@ static int phylink_validate_phy(struct phylink *pl, struct phy_device *phy,
 					     interfaces);
 	}
 
+	phylink_dbg(pl, "PHY %s doesn't supply possible interfaces\n",
+		    phydev_name(phy));
+
 	/* Check whether we would use rate matching for the proposed interface
 	 * mode.
 	 */
Signature · 1 line
2.30.2
#2 lore raw
In reply to Russell King (Oracle)
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

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

Quoted 7 lines · On Sun, 28 Apr 2024 15:51:02 +0100 you wrote:

Add a debugging print in phylink_validate_phy() when we detect that the PHY has not supplied a possible_interfaces bitmap.

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

Here is the summary with links:
- [net-next] net: phylink: add debug print for empty posssible_interfaces

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

You are awesome, thank you!

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