On Sun, Jul 05, 2020 at 08:29:21PM +0200, Andrew Lunn wrote: > To ensure that the octoen 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. > > Cc: Sunil Goutham <[email protected]> > Cc: Robert Richter <[email protected]> > Cc: Chris Packham <[email protected]> > Cc: Greg Kroah-Hartman <[email protected]> > Signed-off-by: Andrew Lunn <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
