linux_dsm_epyc7002/drivers/net/phy
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
..
mscc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-06-25 19:29:51 -07:00
adin.c net: phy: Fixup parameters in kerneldoc 2020-07-07 12:47:10 -07:00
amd.c
aquantia_hwmon.c
aquantia_main.c
aquantia.h
at803x.c net: phy: at803x: Avoid comparison is always false warning 2020-07-07 12:47:10 -07:00
ax88796b.c
bcm7xxx.c
bcm63xx.c
bcm87xx.c net: mdiobus: add clause 45 mdiobus accessors 2020-05-26 15:31:45 -07:00
bcm54140.c net: phy: bcm54140: add cable diagnostics support 2020-05-13 12:52:39 -07:00
bcm84881.c
bcm-cygnus.c
bcm-phy-lib.c net: phy: broadcom: don't export RDB/legacy access methods 2020-06-01 12:02:57 -07:00
bcm-phy-lib.h net: phy: broadcom: add cable test support 2020-05-13 12:52:38 -07:00
broadcom.c net: phy: broadcom: fix checkpatch complains about tabs 2020-05-16 13:38:33 -07:00
cicada.c
cortina.c net: mdiobus: add clause 45 mdiobus accessors 2020-05-26 15:31:45 -07:00
davicom.c
dp83tc811.c
dp83640_reg.h
dp83640.c net: phy: dp83640: Fixup cast to restricted __be16 warning 2020-07-07 12:47:11 -07:00
dp83822.c net: phy: DP83822: Add setting the fixed internal delay 2020-06-25 16:05:21 -07:00
dp83848.c
dp83867.c net: dp83867: Fix OF_MDIO config check 2020-06-05 13:15:22 -07:00
dp83869.c net: dp83869: Add RGMII internal delay configuration 2020-06-25 16:05:21 -07:00
et1011c.c
fixed_phy.c net: phy: fixed_phy: Remove unused seqcount 2020-06-04 15:50:42 -07:00
icplus.c
intel-xway.c
Kconfig net: phy: mscc: avoid skcipher API for single block AES encryption 2020-06-25 12:16:14 -07:00
linkmode.c
lxt.c
Makefile of: mdio: provide devm_of_mdiobus_register() 2020-06-30 15:57:34 -07:00
marvell10g.c net: phy: marvell10g: support XFI rate matching mode 2020-06-29 17:24:31 -07:00
marvell.c net: phy: marvell: Add Marvell 88E1548P support 2020-06-22 16:28:34 -07:00
mdio_bus.c net: phy: don't abuse devres in devm_mdiobus_register() 2020-06-30 15:57:34 -07:00
mdio_device.c net: phy: Fixup parameters in kerneldoc 2020-07-07 12:47:10 -07:00
mdio_devres.c of: mdio: provide devm_of_mdiobus_register() 2020-06-30 15:57:34 -07:00
mdio-aspeed.c
mdio-bcm-iproc.c net: phy: Make iproc_mdio_resume static 2020-05-07 12:55:29 -07:00
mdio-bcm-unimac.c
mdio-bitbang.c
mdio-boardinfo.c net: phy: Fixup parameters in kerneldoc 2020-07-07 12:47:10 -07:00
mdio-boardinfo.h
mdio-cavium.c
mdio-cavium.h net: phy: cavium: Improve __iomem mess 2020-07-07 12:47:11 -07:00
mdio-gpio.c
mdio-hisi-femac.c
mdio-i2c.c
mdio-i2c.h
mdio-ipq4019.c
mdio-ipq8064.c
mdio-moxart.c net: phy: mdio-moxart: remove unneeded include 2020-05-14 17:58:46 -07:00
mdio-mscc-miim.c net: phy: mscc-miim: read poll when high resolution timers are disabled 2020-05-26 15:33:56 -07:00
mdio-mux-bcm-iproc.c
mdio-mux-gpio.c
mdio-mux-meson-g12a.c
mdio-mux-mmioreg.c
mdio-mux-multiplexer.c
mdio-mux.c
mdio-mvusb.c
mdio-octeon.c net: phy: mdio-octeon: Cleanup module loading dependencies 2020-07-07 12:47:11 -07:00
mdio-sun4i.c
mdio-thunder.c net: phy: cavium: Improve __iomem mess 2020-07-07 12:47:11 -07:00
mdio-xgene.c
mdio-xgene.h
mdio-xpcs.c
meson-gxl.c
micrel.c
microchip_t1.c
microchip.c
mii_timestamper.c
national.c
nxp-tja11xx.c net: ethtool: Add generic parts of cable test TDR 2020-05-26 23:21:48 -07:00
phy_device.c net: phy: Make phy_10gbit_fec_features_array static 2020-07-07 12:47:10 -07:00
phy_led_triggers.c
phy-c45.c net: phy: split devices_in_package 2020-06-19 20:17:15 -07:00
phy-core.c net: mdiobus: add clause 45 mdiobus accessors 2020-05-26 15:31:45 -07:00
phy.c net: phy: make phy_disable_interrupts() non-static 2020-06-24 14:52:49 -07:00
phylink.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-06-25 19:29:51 -07:00
qsemi.c
realtek.c
rockchip.c
sfp-bus.c
sfp.c net: sfp: Unique GPIO interrupt names 2020-07-07 12:45:39 -07:00
sfp.h
smsc.c net: phy: smsc: fix printing too many logs 2020-06-22 16:08:48 -07:00
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c