linux/drivers/staging/octeon
Andrew Lunn 791e5f61ae net: phy: mdio-octeon: Cleanup module loading dependencies
To ensure that the octeon MDIO driver has been loaded, the Cavium
ethernet drivers reference a dummy symbol in the MDIO driver. This
forces it to be loaded first. And this symbol has not been cleanly
implemented, resulting in warnings when build W=1 C=1.

Since device tree is being used, and a phandle points to the PHY on
the MDIO bus, we can make use of deferred probing. If the PHY fails to
connect, it should be because the MDIO bus driver has not loaded
yet. Return -EPROBE_DEFER so it will be tried again later.

Additionally, add a MODULE_SOFTDEP() to give user space a hint as to
what order it should load the modules.

v2:
s/octoen/octeon/
Add MODULE_SOFTDEP()

Cc: Sunil Goutham <sgoutham@marvell.com>
Cc: Robert Richter <rrichter@marvell.com>
Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-07 12:47:11 -07:00
..
ethernet-defines.h Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-mdio.c net: phy: mdio-octeon: Cleanup module loading dependencies 2020-07-07 12:47:11 -07:00
ethernet-mdio.h net: phy: mdio-octeon: Cleanup module loading dependencies 2020-07-07 12:47:11 -07:00
ethernet-mem.c Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-mem.h Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-rgmii.c Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-rx.c Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-rx.h Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-sgmii.c Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-spi.c Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-tx.c staging/octeon: fix up merge error 2020-03-30 17:22:01 -07:00
ethernet-tx.h Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-util.h Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet.c net: phy: mdio-octeon: Cleanup module loading dependencies 2020-07-07 12:47:11 -07:00
Kconfig Revert "staging/octeon: Mark Ethernet driver as BROKEN" 2020-02-12 13:50:33 -08:00
Makefile Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
octeon-ethernet.h Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
octeon-stubs.h staging: octeon: match parentheses alignment 2020-02-23 19:20:49 +01:00
TODO Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00