]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit55a4d2eac327fca4b22544f98d86d6e7b7981913
tree0b20714f23e2af84e5c7478a563fd43d4cdf6dba
parent2cae8c07cb8c03a98aecbb8c7fb14c1922772adb
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: 0e01491de646 ("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