]> 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)
commit15a11e0e8f9335ecb08d6d3387d7b95c17c3fcb3
tree581f35285f643925292793779782e8669e34982c
parent9e8f007c0a45725e0f357714cc04a28983a94563
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