From: Atsushi Nemoto Date: Thu, 6 Aug 2009 04:41:48 +0000 (+0000) Subject: tc35815: Fix rx_missed_errors count X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7bb82e834cc9cc95512287a9bf637719557674a0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git tc35815: Fix rx_missed_errors count The Miss_Cnt register is cleared by reading. Accumulate its value to rx_missed_errors count. Signed-off-by: Atsushi Nemoto Signed-off-by: David S. Miller --- diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index f42aaf72cc95..411cc0e5f7a4 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c @@ -2139,7 +2139,7 @@ static struct net_device_stats *tc35815_get_stats(struct net_device *dev) (struct tc35815_regs __iomem *)dev->base_addr; if (netif_running(dev)) /* Update the statistics from the device registers. */ - dev->stats.rx_missed_errors = tc_readl(&tr->Miss_Cnt); + dev->stats.rx_missed_errors += tc_readl(&tr->Miss_Cnt); return &dev->stats; }