On 5/22/2019 6:20 PM, Ioana Ciornei wrote: > A prerequisite for PHYLIB to work in the absence of a struct net_device > is to not access pointers to it. > > Changes are needed in the following areas: > > - Printing: In some places netdev_err was replaced with phydev_err. > > - Incrementing reference count to the parent MDIO bus driver: If there > is no net device, then the reference count should definitely be > incremented since there is no chance that it was an Ethernet driver > who registered the MDIO bus. > > - Sysfs links are not created in case there is no attached_dev. > > - No netif_carrier_off is done if there is no attached_dev. > > Signed-off-by: Ioana Ciornei <ioana.cior...@nxp.com> > Signed-off-by: Vladimir Oltean <olte...@gmail.com> Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- [RFC PATCH net-next 0/9] Decoupling PHYLINK from struct n... Ioana Ciornei
- [RFC PATCH net-next 9/9] net: dsa: sja1105: Fix brok... Ioana Ciornei
- Re: [RFC PATCH net-next 9/9] net: dsa: sja1105: ... Florian Fainelli
- [RFC PATCH net-next 4/9] net: phylink: Add phylink_m... Ioana Ciornei
- Re: [RFC PATCH net-next 4/9] net: phylink: Add p... Florian Fainelli
- [RFC PATCH net-next 1/9] net: phy: Add phy_sysfs_cre... Ioana Ciornei
- Re: [RFC PATCH net-next 1/9] net: phy: Add phy_s... Florian Fainelli
- [RFC PATCH net-next 2/9] net: phy: Guard against the... Ioana Ciornei
- Re: [RFC PATCH net-next 2/9] net: phy: Guard aga... Florian Fainelli
- Re: [RFC PATCH net-next 2/9] net: phy: Guard aga... Andrew Lunn
- RE: [RFC PATCH net-next 2/9] net: phy: Guard... Ioana Ciornei
- Re: [RFC PATCH net-next 2/9] net: phy: G... Andrew Lunn
- RE: [RFC PATCH net-next 2/9] net: p... Ioana Ciornei
- [RFC PATCH net-next 3/9] net: phy: Add phy_standalon... Ioana Ciornei
- Re: [RFC PATCH net-next 3/9] net: phy: Add phy_s... Florian Fainelli
- RE: [RFC PATCH net-next 3/9] net: phy: Add p... Ioana Ciornei
- [RFC PATCH net-next 6/9] net: phylink: Make fixed li... Ioana Ciornei
- [RFC PATCH net-next 8/9] net: dsa: Use PHYLINK for t... Ioana Ciornei
- Re: [RFC PATCH net-next 8/9] net: dsa: Use PHYLI... Florian Fainelli