On 5/22/2019 6:20 PM, Ioana Ciornei wrote: > In order to have a common handling of PHYLINK for the slave and non-user > ports, the DSA core glue logic (between PHYLINK and the driver) must use > an API that does not rely on a struct net_device. > > These will also be called by the CPU-port-handling code in a further > patch. > > Signed-off-by: Ioana Ciornei <[email protected]> > Suggested-by: Vladimir Oltean <[email protected]> > --- [snip] > +void dsa_port_phylink_validate(struct dsa_port *dp, > + unsigned long *supported, > + struct phylink_link_state *state) > +{ > + struct dsa_switch *ds = dp->ds; > + > + if (!ds->ops->phylink_validate) > + return; > + > + ds->ops->phylink_validate(ds, dp->index, supported, state); > +} > +EXPORT_SYMBOL(dsa_port_phylink_validate); Those exports should probably be _GPL to follow the PHYLINK exports but other than that: Reviewed-by: Florian Fainelli <[email protected]> -- Florian
- Re: [RFC PATCH net-next 1/9] net: phy:... Florian Fainelli
- [RFC PATCH net-next 2/9] net: phy: Guard ag... Ioana Ciornei
- Re: [RFC PATCH net-next 2/9] net: phy:... Florian Fainelli
- [RFC PATCH net-next 3/9] net: phy: Add phy_... Ioana Ciornei
- Re: [RFC PATCH net-next 3/9] net: phy:... Florian Fainelli
- [RFC PATCH net-next 6/9] net: phylink: Make... Ioana Ciornei
- [RFC PATCH net-next 8/9] net: dsa: Use PHYL... Ioana Ciornei
- Re: [RFC PATCH net-next 8/9] net: dsa:... Florian Fainelli
- Re: [RFC PATCH net-next 8/9] net: ... Vladimir Oltean
- [RFC PATCH net-next 7/9] net: dsa: Move the... Ioana Ciornei
- Re: [RFC PATCH net-next 7/9] net: dsa:... Florian Fainelli
- Re: [RFC PATCH net-next 7/9] net: dsa:... Russell King - ARM Linux admin
- [RFC PATCH net-next 5/9] net: phylink: Add ... Ioana Ciornei
- Re: [RFC PATCH net-next 5/9] net: phyl... Florian Fainelli
- Re: [RFC PATCH net-next 5/9] net: ... Florian Fainelli
- RE: [RFC PATCH net-next 5/9] n... Ioana Ciornei
- Re: [RFC PATCH net-next 5/... Florian Fainelli
- Re: [RFC PATCH net-ne... Vladimir Oltean
- Re: [RFC PATCH ne... Florian Fainelli
- Re: [RFC PATCH net-next 5/9] net: phyl... Russell King - ARM Linux admin
- Re: [RFC PATCH net-next 5/9] net: ... Vladimir Oltean
