]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: Also include SGMII for mac_config and mac_link_state
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 21 Sep 2018 23:43:59 +0000 (16:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 03:01:19 +0000 (20:01 -0700)
commite25f59c23f9ee0a63d3019ce075c1ae779717e8e
tree0b20714f23e2af84e5c7478a563fd43d4cdf6dba
parente81c3bd6338073b573c245cc62ac5f3da2bd730e
net: dsa: b53: Also include SGMII for mac_config and mac_link_state

In both 802.3z and SGMII modes we need to configure the MAC accordingly
to flip between Fiber and SGMII modes, and we need to read the MAC
status from the SGMII in-band control word.

Fixes: 77e88995d83e ("net: dsa: b53: Add SerDes support")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c