On 7/5/2020 11:29 AM, Andrew Lunn wrote: > To ensure that the octoen MDIO driver has been loaded, the Cavium s/octoen/octeon/ > 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. Do you also want to add a MODULE_SOFTDEP() to ensure that mdio-octeon is loaded prior those those modules? This is a hint for modprobe and libkmod but it would be nicer to have. With that: Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- [PATCH net-next 2/7] net: phy: Fixup parameters in kern... Andrew Lunn
- Re: [PATCH net-next 2/7] net: phy: Fixup parameter... Florian Fainelli
- [PATCH net-next 3/7] net: phy: Properly define genphy_c... Andrew Lunn
- Re: [PATCH net-next 3/7] net: phy: Properly define... Florian Fainelli
- [PATCH net-next 4/7] net: phy: Make phy_10gbit_fec_fea... Andrew Lunn
- Re: [PATCH net-next 4/7] net: phy: Make phy_10gbit... Florian Fainelli
- [PATCH net-next 5/7] net: phy: dp83640: Fixup cast to r... Andrew Lunn
- Re: [PATCH net-next 5/7] net: phy: dp83640: Fixup ... Florian Fainelli
- Re: [PATCH net-next 5/7] net: phy: dp83640: Fi... Richard Cochran
- [PATCH net-next 7/7] net: phy: mdio-octeon: Cleanup mod... Andrew Lunn
- Re: [PATCH net-next 7/7] net: phy: mdio-octeon: Cl... Florian Fainelli
- Re: [PATCH net-next 7/7] net: phy: mdio-octeon: Cl... Greg Kroah-Hartman
- Re: [PATCH net-next 7/7] net: phy: mdio-octeon: Cl... Chris Packham
- [PATCH net-next 6/7] net: phy: cavium: Improve __iomem ... Andrew Lunn
- Re: [PATCH net-next 6/7] net: phy: cavium: Improve... Florian Fainelli