]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: lan966x: Fix port configuration when using SGMII interface
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 24 Jan 2024 10:17:58 +0000 (11:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Jan 2024 10:02:01 +0000 (10:02 +0000)
commit62b4248105353e7d1debd30ca5c57ec5e5f28e35
tree8112ff03980f0866a6cc0dc27d4386a6d28364fd
parent586e40aa883cab255ab8ddfe332c4092a5349cb7
net: lan966x: Fix port configuration when using SGMII interface

In case the interface between the MAC and the PHY is SGMII, then the bit
GIGA_MODE on the MAC side needs to be set regardless of the speed at
which it is running.

Fixes: d28d6d2e37d1 ("net: lan966x: add port module support")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_port.c