]> 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)
commite3871294cb50a02473bfd1764b17c72d660cbacd
treef084b53a1f3b5901391cdbef7da3ae270cd0d2f4
parent85251ea3477076eb024ed0cef0d202c1929814ae
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