diff mbox

[net-next] net: fec: Clear and enable MIB counters on imx51

Message ID CAOMZO5A1hh=6npHGkK8Y+0F_ta+Kr-5OxRdqyqmma_xis84WqA@mail.gmail.com
State RFC, archived
Delegated to: David Miller
Headers show

Commit Message

Fabio Estevam June 10, 2017, 1:12 a.m. UTC
Hi Paul,

On Fri, Jun 9, 2017 at 10:01 PM, Paul Gortmaker
<paul.gortmaker@windriver.com> wrote:

> Seems to break one of the automated linux-next builds:
>
> http://kisskb.ellerman.id.au/kisskb/buildresult/13057702/
>
> A mindless automated bisect reports:
>
> 2b30842b23b9e6796c7bd5f0916fd2ebf6b7d633 is the first bad commit
> commit 2b30842b23b9e6796c7bd5f0916fd2ebf6b7d633
> Author: Andrew Lunn <andrew@lunn.ch>
> Date:   Wed Jun 7 03:57:09 2017 +0200
>
>     net: fec: Clear and enable MIB counters on imx51

This should fix it:

 /* ITR clock source is enet system clock (clk_ahb).

Will test it and submit a formal patch in case it works.

Thanks
diff mbox

Patch

--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -2379,6 +2379,10 @@  static void fec_enet_clear_ethtool_stats(struct
net_device *dev)
 static inline void fec_enet_update_ethtool_stats(struct net_device *dev)
 {
 }
+
+static inline void fec_enet_clear_ethtool_stats(struct net_device *dev)
+{
+}
 #endif /* !defined(CONFIG_M5272) */