1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/microchip/lan966x
Michael Walle b58cdd4388 net: lan966x: check devm_of_phy_get() for -EDEFER_PROBE
At the moment, if devm_of_phy_get() returns an error the serdes
simply isn't set. While it is bad to ignore an error in general, there
is a particular bug that network isn't working if the serdes driver is
compiled as a module. In that case, devm_of_phy_get() returns
-EDEFER_PROBE and the error is silently ignored.

The serdes is optional, it is not there if the port is using RGMII, in
which case devm_of_phy_get() returns -ENODEV. Rearrange the error
handling so that -ENODEV will be handled but other error codes will
abort the probing.

Fixes: d28d6d2e37 ("net: lan966x: add port module support")
Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220525231239.1307298-1-michael@walle.cc
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-05-26 20:45:29 -07:00
..
Kconfig net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module 2022-02-13 15:57:03 +00:00
lan966x_ethtool.c net: lan966x: Implement get_ts_info 2022-02-01 14:18:44 +00:00
lan966x_fdb.c net: lan966x: Extend switchdev with fdb support 2021-12-20 11:44:06 +00:00
lan966x_fdma.c net: lan966x: Fix use of pointer after being freed 2022-05-12 16:21:56 -07:00
lan966x_ifh.h net: lan966x: add port module support 2021-11-29 12:58:38 +00:00
lan966x_mac.c net: lan966x: fix a couple off by one bugs 2022-04-25 11:25:37 +01:00
lan966x_main.c net: lan966x: check devm_of_phy_get() for -EDEFER_PROBE 2022-05-26 20:45:29 -07:00
lan966x_main.h net: lan966x: Add support for PTP_PF_EXTTS 2022-04-27 12:03:18 +01:00
lan966x_mdb.c net: lan966x: Update mdb when enabling/disabling mcast_snooping 2022-02-05 15:00:43 +00:00
lan966x_phylink.c net: lan966x: use .mac_select_pcs() interface 2022-02-03 19:11:21 -08:00
lan966x_port.c net: lan966x: Add FDMA functionality 2022-04-11 20:49:32 -07:00
lan966x_ptp.c net: lan966x: Add support for PTP_PF_EXTTS 2022-04-27 12:03:18 +01:00
lan966x_regs.h net: lan966x: Add registers used to configure the PTP pin 2022-04-27 12:03:18 +01:00
lan966x_switchdev.c net: lan966x: Fix when a port's upper is changed. 2022-04-11 20:47:15 -07:00
lan966x_vlan.c net: lan966x: Extend switchdev with mdb support 2022-01-05 11:25:13 +00:00
Makefile net: lan966x: Add FDMA functionality 2022-04-11 20:49:32 -07:00