net: lan743x: fix duplex configuration in mac_link_up
Subsystems (3)
PATCH 1/1 net: lan743x: fix duplex configuration in mac_link_up
The driver does not explicitly configure the MAC duplex mode when bringing the link up. As a result, the MAC may retain a stale duplex setting from a previous link state, leading to duplex mismatches with the link partner and degraded network performance.
Update lan743x_phylink_mac_link_up() to set or clear the MAC_CR_DPX_ bit according to the negotiated duplex mode.
This ensures the MAC configuration is consistent with the phylink resolved state.
--- drivers/net/ethernet/microchip/lan743x_main.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/net/ethernet/microchip/lan743x_main.c +5 -0
@@ -3056,6 +3056,11 @@ static void lan743x_phylink_mac_link_up(struct phylink_config *config,else if (speed ==SPEED_100 ) mac_cr |=MAC_CR_CFG_L_ ; +if (duplex ==DUPLEX_FULL ) + mac_cr |=MAC_CR_DPX_ ; +else + mac_cr &= ~MAC_CR_DPX_ ; +lan743x_csr_write (adapter,MAC_CR , mac_cr);lan743x_ptp_update_latency (adapter, speed);
Signature · 1 line
2.34.1
Quoted 5 lines · Thangaraj Samynathan
The driver does not explicitly configure the MAC duplex mode when bringing the link up. As a result, the MAC may retain a stale duplex setting from a previous link state, leading to duplex mismatches with the link partner and degraded network performance.
Quoted 8 lines
Update
lan743x_phylink_mac_link_up()to set or clear theMAC_CR_DPX_bit according to the negotiated duplex mode.This ensures the MAC configuration is consistent with the phylink resolved state.
Fixes a5f199a8d8a03 ("net: lan743x: Migrate phylib to phylink")Signed-off-by Thangaraj Samynathan <[email protected]>
Thanks!
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Mon, 23 Mar 2026 12:23:45 +0530 you wrote:
The driver does not explicitly configure the MAC duplex mode when bringing the link up. As a result, the MAC may retain a stale duplex setting from a previous link state, leading to duplex mismatches with the link partner and degraded network performance.
Update
lan743x_phylink_mac_link_up()to set or clear theMAC_CR_DPX_bit according to the negotiated duplex mode.[...]
Here is the summary with links:
- [net] net: lan743x: fix duplex configuration in mac_link_up
https://git.kernel.org/netdev/net/c/71399707876b
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html