net: prestera: use phylink_pcs_change() to report PCS link change events
Subsystems (3)
PATCH 1/1 net: prestera: use phylink_pcs_change() to report PCS link change events
Use phylink_pcs_change() when reporting changes in PCS link state to phylink as the interrupts are informing us about changes to the PCS state.
--- drivers/net/ethernet/marvell/prestera/prestera_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/marvell/prestera/prestera_main.c +2 -2
@@ -821,7 +821,7 @@ static void prestera_port_handle_event(struct prestera_switch *sw,if (port->state_mac.oper) {if (port->phy_link) -phylink_mac_change (port->phy_link, true); +phylink_pcs_change (&port->phylink_pcs, true);else netif_carrier_on (port->dev);
@@ -829,7 +829,7 @@ static void prestera_port_handle_event(struct prestera_switch *sw,queue_delayed_work (prestera_wq, caching_dw,0 ); }else {if (port->phy_link) -phylink_mac_change (port->phy_link, false); +phylink_pcs_change (&port->phylink_pcs, false);else if (netif_running (port->dev) &&netif_carrier_ok (port->dev))netif_carrier_off (port->dev);
Signature · 1 line
2.30.2
Quoted 5 lines · Russell King (Oracle)
Use
phylink_pcs_change()when reporting changes in PCS link state to phylink as the interrupts are informing us about changes to the PCS state.Signed-off-by Russell King (Oracle) <[email protected]>
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 8 lines · On Fri, 26 Apr 2024 17:18:03 +0100 you wrote:
Use
phylink_pcs_change()when reporting changes in PCS link state to phylink as the interrupts are informing us about changes to the PCS state.Signed-off-by Russell King (Oracle) <[email protected]>--- drivers/net/ethernet/marvell/prestera/prestera_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- [net-next] net: prestera: use phylink_pcs_change() to report PCS link change events
https://git.kernel.org/netdev/net-next/c/e47e5e85da3a
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html