]> 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)
commitc7043b8a60cb7a7bb93b5cbd61d7f72953bff211
tree383391752a83defafab33d094680e065b8468c46
parent69bb43ecd12cb33749ce1f7b325f610c41ecc3fc
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: bb48b7a2878d28 ("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