Files
linux/drivers/net/ethernet
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
..
2022-01-09 16:52:18 -08:00
2022-03-04 12:02:19 +00:00
2022-03-04 12:02:19 +00:00
2022-05-22 20:44:29 +01:00
2022-04-05 17:32:05 -07:00
2022-05-22 20:44:30 +01:00
2022-05-16 10:14:27 +01:00
2022-05-05 15:54:12 -07:00
2022-03-04 12:02:19 +00:00
2022-05-05 15:53:28 -07:00
2022-05-05 15:53:28 -07:00