On 6/8/2019 6:03 AM, Vladimir Oltean wrote: > The first fact that needs to be stated is that the per-MAC settings in > SJA1105 called EGRESS and INGRESS do *not* disable egress and ingress on > the MAC. They only prevent non-link-local traffic from being > sent/received on this port. > > So instead of having .phylink_mac_config essentially mess with the STP > state and force it to DISABLED/BLOCKING (which also brings useless > complications in sja1105_static_config_reload), simply add the > .phylink_mac_link_down and .phylink_mac_link_up callbacks which inhibit > TX at the MAC level, while leaving RX essentially enabled. > > Also stop from trying to put the link down in .phylink_mac_config, which > is incorrect. > > Signed-off-by: Vladimir Oltean <olte...@gmail.com> Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- Re: [PATCH net-next 1/4] net: dsa: sja1105: Use SPEE... Andrew Lunn
- Re: [PATCH net-next 1/4] net: dsa: sja1105: Use SPEE... Florian Fainelli
- [PATCH net-next 2/4] net: dsa: sja1105: Update some comme... Vladimir Oltean
- Re: [PATCH net-next 2/4] net: dsa: sja1105: Update s... Andrew Lunn
- Re: [PATCH net-next 2/4] net: dsa: sja1105: Update s... Florian Fainelli
- [PATCH net-next 3/4] net: dsa: sja1105: Export the sja110... Vladimir Oltean
- Re: [PATCH net-next 3/4] net: dsa: sja1105: Export t... Andrew Lunn
- Re: [PATCH net-next 3/4] net: dsa: sja1105: Export t... Florian Fainelli
- [PATCH net-next 4/4] net: dsa: sja1105: Rethink the PHYLI... Vladimir Oltean
- Re: [PATCH net-next 4/4] net: dsa: sja1105: Rethink ... Andrew Lunn
- Re: [PATCH net-next 4/4] net: dsa: sja1105: Rethink ... Florian Fainelli
- Re: [PATCH net-next 0/4] Rethink PHYLINK callbacks for SJ... David Miller