]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: Fix clearing of MIB statistics
authorAndrew Lunn <andrew@lunn.ch>
Thu, 22 Oct 2015 17:37:36 +0000 (18:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Oct 2015 01:20:35 +0000 (18:20 -0700)
commit63ca6d1449920ead09d998493e22e7637f06824e
treef084b53a1f3b5901391cdbef7da3ae270cd0d2f4
parenta023833dce43cd5951e6a47b814927a9d3baf6bf
net: mvneta: Fix clearing of MIB statistics

The existing function to clear the MIB statatistics was using the
wrong address for the registers. Also, the counters would of been
cleared when the interface was brought up, not during the
probe. Fix both of these.

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