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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:35 +0000 (20:14 +0000)
commitf0025c92b1ba36c2c757b7f4aaec0bb3424f190b
tree29edb3de09a7ed4441bfdb8d919ec06ea45a3224
parentdcaafdba6c6162bb49f1192850bc3bbc3707738c
net: lan966x: Fix port configuration when using SGMII interface

[ Upstream commit 62b4248105353e7d1debd30ca5c57ec5e5f28e35 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/microchip/lan966x/lan966x_port.c