]> git.itanic.dy.fi Git - linux-stable/commit
net: sparx5: fix wrong config being used when reconfiguring PCS
authorDaniel Machon <daniel.machon@microchip.com>
Tue, 9 Apr 2024 10:41:59 +0000 (12:41 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 11 Apr 2024 06:30:24 +0000 (08:30 +0200)
commit33623113a48ea906f1955cbf71094f6aa4462e8f
treec301d8b003624d3e50a376fd1b7404efbe22e3f6
parentfe87922cee6161f066f4b9dd542033e048eeedaf
net: sparx5: fix wrong config being used when reconfiguring PCS

The wrong port config is being used if the PCS is reconfigured. Fix this
by correctly using the new config instead of the old one.

Fixes: 946e7fd5053a ("net: sparx5: add port module support")
Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20240409-link-mode-reconfiguration-fix-v2-1-db6a507f3627@microchip.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microchip/sparx5/sparx5_port.c