]> 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)
commit078b6870e329a991a4354029e97fcb9cc13b5d61
tree0b20714f23e2af84e5c7478a563fd43d4cdf6dba
parentabb7de690b27a5492454292f058838984e54241e
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: faa543b7c51d ("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