]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell: avoid pause mode on SGMII-to-Copper for 88e151x
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 15 Dec 2017 16:10:20 +0000 (16:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Dec 2017 20:04:44 +0000 (15:04 -0500)
commit8d49c6c2601b2a07475b49467b2f3c182c633cd1
tree9014acf95ba1f78fdd01725b8e30f07e66a3bb95
parentdd77cf81ecd8509189a890c00de05b37f62170e1
net: phy: marvell: avoid pause mode on SGMII-to-Copper for 88e151x

Observed on the 88e1512 in SGMII-to-Copper mode, negotiating pause
is unreliable.  While the pause bits can be set in the advertisment
register, they clear shortly after negotiation with a link partner
commences irrespective of the cause of the negotiation.

While these bits may be correctly conveyed to the link partner on the
first negotiation, a subsequent negotiation (eg, due to negotiation
restart by the link partner, or reconnection of the cable) will result
in the link partner seeing these bits as zero, while the kernel
believes that it has advertised pause modes.

This leads to the local kernel evaluating (eg) symmetric pause mode,
while the remote end evaluates that we have no pause mode capability.

Since we can't guarantee the advertisment, disable pause mode support
with this PHY when used in SGMII-to-Copper mode.

The 88e1510 in RGMII-to-Copper mode appears to behave correctly.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c