]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: Only clear the stat counters at port init
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Mon, 10 Jun 2019 08:55:27 +0000 (10:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2019 16:12:52 +0000 (09:12 -0700)
commitd9daa182b9e8c6c9c6db909b0134e503c17ee841
tree581f35285f643925292793779782e8669e34982c
parent798dccb5a793920e68a01674a67fda005219bed8
net: mvpp2: Only clear the stat counters at port init

When first configuring a port on PPv2, we want to clear the internal
counters so that we don't get values from previous boot stages.

However, we can't really clear these counters when resetting the MAC,
since there are valid reasons to do so while the port is being used,
such as when reconfiguring the interface mode with the PHY.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c