Davinci: Do not reset EMAC TX overruns counter on read
authorThomas Lange <thomas@corelatus.se>
Wed, 9 Mar 2011 04:41:16 +0000 (04:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2011 22:04:50 +0000 (15:04 -0700)
commit60aeba23101f34a690a0b0a048ffde3d023d4f3b
treebff2e733d6bc1e6b51799018df683e89bf8b29f0
parent0b32211164da2b100553cb45e4e862f09c5cab11
Davinci: Do not reset EMAC TX overruns counter on read

Don't reset tx_fifo_errors when reading out current EMAC stats.
  (tx_fifo_errors shows up as TX overruns in netdev stats.)

Without this correction, the old counter value is lost every time
stats are read out.

Signed-off-by: Thomas Lange <thomas@corelatus.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/davinci_emac.c