aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorAndrew Lunn <[email protected]>2020-07-07 03:49:39 +0200
committerDavid S. Miller <[email protected]>2020-07-07 12:47:11 -0700
commit791e5f61aec5a1332a8f760f43a6d32c416df602 (patch)
treedd7199f1d30da213fd32d83b33d01d2aae27c8cd /tools/testing/selftests/bpf/prog_tests/autoload.c
parentc7b04d1030f505f2d883612ed31a6ddd70182705 (diff)
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 <[email protected]> Cc: Robert Richter <[email protected]> Cc: Chris Packham <[email protected]> Tested-by: Chris Packham <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions