public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: phylink: add debug for phy_config_inband()
@ 2026-03-18  8:27 Russell King (Oracle)
  2026-03-18  8:56 ` Maxime Chevallier
  2026-03-21  1:40 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Russell King (Oracle) @ 2026-03-18  8:27 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, netdev,
	Paolo Abeni

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>
---
 drivers/net/phy/phylink.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 59bcc69b6c39..1c178038e6f1 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",
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: phylink: add debug for phy_config_inband()
  2026-03-18  8:27 [PATCH net-next] net: phylink: add debug for phy_config_inband() Russell King (Oracle)
@ 2026-03-18  8:56 ` Maxime Chevallier
  2026-03-21  1:40 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Maxime Chevallier @ 2026-03-18  8:56 UTC (permalink / raw)
  To: Russell King (Oracle), Andrew Lunn
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, netdev,
	Paolo Abeni

On 18/03/2026 09:27, Russell King (Oracle) wrote:
> 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>

Ah, useful indeed !

Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>

Maxime

> ---
>  drivers/net/phy/phylink.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
> index 59bcc69b6c39..1c178038e6f1 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",


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: phylink: add debug for phy_config_inband()
  2026-03-18  8:27 [PATCH net-next] net: phylink: add debug for phy_config_inband() Russell King (Oracle)
  2026-03-18  8:56 ` Maxime Chevallier
@ 2026-03-21  1:40 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-03-21  1:40 UTC (permalink / raw)
  To: Russell King; +Cc: andrew, davem, edumazet, kuba, netdev, pabeni

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

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.
> 
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-21  1:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-18  8:27 [PATCH net-next] net: phylink: add debug for phy_config_inband() Russell King (Oracle)
2026-03-18  8:56 ` Maxime Chevallier
2026-03-21  1:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox