diff options
author | Liu Jian <liujian56@huawei.com> | 2022-11-17 15:59:18 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-11-22 13:41:49 +0300 |
commit | 4305fe232b8aa59af3761adc9fe6b6aa40913960 (patch) | |
tree | d115d757c937a6adf6adb3657c5c6c7ebeb04fbb /net/sched/Kconfig | |
parent | aad98abd5cb8133507f22654f56bcb443aaa2d89 (diff) | |
download | linux-4305fe232b8aa59af3761adc9fe6b6aa40913960.tar.xz |
net: sparx5: fix error handling in sparx5_port_open()
If phylink_of_phy_connect() fails, the port should be disabled.
If sparx5_serdes_set()/phy_power_on() fails, the port should be
disabled and the phylink should be stopped and disconnected.
Fixes: 946e7fd5053a ("net: sparx5: add port module support")
Fixes: f3cad2611a77 ("net: sparx5: add hostmode with phylink support")
Signed-off-by: Liu Jian <liujian56@huawei.com>
Tested-by: Bjarni Jonasson <bjarni.jonasson@microchip.com>
Reviewed-by: Steen Hegelund <steen.hegelund@microchip.com>
Link: https://lore.kernel.org/r/20221117125918.203997-1-liujian56@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/sched/Kconfig')
0 files changed, 0 insertions, 0 deletions