1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/xilinx
Robert Hancock 57baf8cc70 net: axienet: Handle deferred probe on clock properly
This driver is set up to use a clock mapping in the device tree if it is
present, but still work without one for backward compatibility. However,
if getting the clock returns -EPROBE_DEFER, then we need to abort and
return that error from our driver initialization so that the probe can
be retried later after the clock is set up.

Move clock initialization to earlier in the process so we do not waste as
much effort if the clock is not yet available. Switch to use
devm_clk_get_optional and abort initialization on any error reported.
Also enable the clock regardless of whether the controller is using an MDIO
bus, as the clock is required in any case.

Fixes: 09a0354cad ("net: axienet: Use clock framework to get device clock rate")
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-02-12 17:36:31 -08:00
..
Kconfig drivers: net: xilinx_emaclite: Add COMPILE_TEST support 2020-11-12 14:32:31 -08:00
ll_temac.h net: ll_temac: Add ethtool support for coalesce parameters 2020-02-29 21:30:43 -08:00
ll_temac_main.c net: ll_temac: Fix potential NULL dereference in temac_probe() 2020-12-08 16:15:46 -08:00
ll_temac_mdio.c net: ll_temac: Prepare indirect register access for multicast support 2019-05-23 09:33:57 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xilinx_axienet.h net: xilinx: axiethernet: Introduce helper functions for MDC enable/disable 2020-11-07 11:13:51 -08:00
xilinx_axienet_main.c net: axienet: Handle deferred probe on clock properly 2021-02-12 17:36:31 -08:00
xilinx_axienet_mdio.c net: xilinx: axiethernet: Enable dynamic MDIO MDC 2020-11-07 11:13:52 -08:00
xilinx_emaclite.c drivers: net: xilinx_emaclite: Fix -Wpointer-to-int-cast warnings with W=1 2020-11-12 14:32:31 -08:00