]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd77c59fd800c5823c7f749e103140689835bba30
tree383391752a83defafab33d094680e065b8468c46
parenta9da67ee113b457c418feb1d7ffb7088e87cdbaa
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: 055718c1aaafda ("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