net: mvpp2: Don't check for 3 consecutive Idle frames for 10G links
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Fri, 19 Jul 2019 14:38:48 +0000 (16:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:28:29 +0000 (08:28 +0200)
commit192bbe9d57ed9dd1285796c5f0236bda91842c38
tree7277ae9055ea8f97d5a7a26410f9937f6bc159d0
parenta1e5a76db8ddfd8dbd629af14c73e6b7de4955bd
net: mvpp2: Don't check for 3 consecutive Idle frames for 10G links

[ Upstream commit bba18318e7d1d5c8b0bbafd65010a0cee3c65608 ]

PPv2's XLGMAC can wait for 3 idle frames before triggering a link up
event. This can cause the link to be stuck low when there's traffic on
the interface, so disable this feature.

Fixes: 4bb043262878 ("net: mvpp2: phylink support")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c