Vladimir Oltean 8400cff60b net: dsa: sja1105: Rethink the PHYLINK callbacks
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 <olteanv@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-06-09 19:58:59 -07:00
..
2019-05-31 10:38:35 -07:00
2019-06-02 09:27:44 -07:00
2019-05-31 08:34:32 -07:00
2019-05-25 10:11:23 -07:00
2019-05-31 08:34:32 -07:00
2019-05-31 08:34:32 -07:00
2019-05-31 08:34:32 -07:00
2019-06-02 10:14:25 -07:00
2019-05-25 10:11:23 -07:00
2019-05-24 16:02:14 -07:00
2019-05-27 11:08:23 -04:00
2019-05-31 08:34:32 -07:00
2019-05-31 10:53:34 -07:00