On Wed, 2017-04-12 at 17:00 -0700, Florian Fainelli wrote: > > -static int ftgmac100_nway_reset(struct net_device *ndev) > > +static int ftgmac100_nway_reset(struct net_device *netdev) > > { > > - if (!ndev->phydev) > > + if (!netdev->phydev) > > return -ENXIO; > > - return phy_start_aneg(ndev->phydev); > > + return phy_start_aneg(netdev->phydev); > > Can you use phy_ethtool_nway_reset() which does that (and also checks > if phydev->drv is NULL which would be the case after an unbind).
Ah sure, I didn't notice that one, grepped the wrong driver :-) I'll respin later today. Thanks ! Cheers, Ben.