linux_dsm_epyc7002/drivers/net/dsa/sja1105
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
..
Kconfig net: dsa: sja1105: Update some comments about PHYLIB 2019-06-09 19:58:58 -07:00
Makefile net: dsa: sja1105: Add support for the PTP clock 2019-06-08 15:20:40 -07:00
sja1105_clocking.c net: dsa: sja1105: Error out if RGMII delays are requested in DT 2019-05-03 10:49:17 -04:00
sja1105_dynamic_config.c net: dsa: sja1105: Add support for the AVB Parameters Table 2019-06-08 15:20:40 -07:00
sja1105_dynamic_config.h net: dsa: sja1105: Plug in support for TCAM searches via the dynamic interface 2019-06-04 11:49:19 -07:00
sja1105_ethtool.c net: dsa: sja1105: Fix status initialization in sja1105_get_ethtool_stats 2019-05-07 12:20:46 -07:00
sja1105_main.c net: dsa: sja1105: Rethink the PHYLINK callbacks 2019-06-09 19:58:59 -07:00
sja1105_ptp.c net: dsa: sja1105: Expose PTP timestamping ioctls to userspace 2019-06-08 15:20:40 -07:00
sja1105_ptp.h net: dsa: sja1105: Add logic for TX timestamping 2019-06-08 15:20:40 -07:00
sja1105_spi.c net: dsa: sja1105: Export the sja1105_inhibit_tx function 2019-06-09 19:58:58 -07:00
sja1105_static_config.c net: dsa: sja1105: Add support for the AVB Parameters Table 2019-06-08 15:20:40 -07:00
sja1105_static_config.h net: dsa: sja1105: Add support for the AVB Parameters Table 2019-06-08 15:20:40 -07:00
sja1105.h net: dsa: sja1105: Export the sja1105_inhibit_tx function 2019-06-09 19:58:58 -07:00