net: lan966x: Fix the configuration of the pcs
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Sat, 11 Dec 2021 21:44:20 +0000 (22:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Dec 2021 14:39:41 +0000 (14:39 +0000)
commitb26980ab2a9776e5427d784fbafb1a01269f4001
tree383391752a83defafab33d094680e065b8468c46
parent87f7282e76bef97d775a7cd61dc1988fc5ed8639
net: lan966x: Fix the configuration of the pcs

When inserting a SFP that runs at 2.5G, then the Serdes was still
configured to run at 1G. Because the config->speed was 0, and then the
speed of the serdes was not configured at all, it was using the default
value which is 1G. This patch stop calling the serdes function set_speed
and allow the serdes to figure out the speed based on the interface
type.

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