]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: dsa: mv88e6xxx: support in-band signalling on SGMII ports with external PHYs
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 1 Mar 2019 19:41:00 +0000 (20:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 18:52:39 +0000 (10:52 -0800)
commit72d8b4fdbfb6192cec1ce25c46020fb48b62fa1e
tree7203201862479967c30a9096ca1fd1d99c2df106
parent80f61f19e542aed04cdc6cf9b748ca92bf394333
net: dsa: mv88e6xxx: support in-band signalling on SGMII ports with external PHYs

If an external PHY is connected via SGMII and uses in-band signalling
then the auto-negotiated values aren't propagated to the port,
resulting in a broken link. See discussion in [0]. This patch adds
this propagation. We need to call mv88e6xxx_port_setup_mac(),
therefore export it from chip.c.

Successfully tested on a ZII DTU with 88E6390 switch and an
Aquantia AQCS109 PHY connected via SGMII to port 9.

[0] https://marc.info/?t=155130287200001&r=1&w=2

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/serdes.c
drivers/net/dsa/mv88e6xxx/serdes.h