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

2017-06-09 Thread Fabio Estevam
Hi Paul, On Fri, Jun 9, 2017 at 10:01 PM, Paul Gortmaker 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 > c

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

2017-06-09 Thread Paul Gortmaker
On Wed, Jun 7, 2017 at 10:07 AM, David Miller wrote: > From: Andrew Lunn > Date: Wed, 7 Jun 2017 03:57:09 +0200 > >> Both the IMX51 and IMX53 datasheet indicates that the MIB counters >> should be cleared during setup. Otherwise random numbers are returned >> via ethtool -S. Add a quirk and a f

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

2017-06-07 Thread David Miller
From: Andrew Lunn Date: Wed, 7 Jun 2017 03:57:09 +0200 > Both the IMX51 and IMX53 datasheet indicates that the MIB counters > should be cleared during setup. Otherwise random numbers are returned > via ethtool -S. Add a quirk and a function to do this. > > Tested on an IMX51. > > Signed-off-b

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

2017-06-07 Thread Fabio Estevam
On Tue, Jun 6, 2017 at 10:57 PM, Andrew Lunn wrote: > Both the IMX51 and IMX53 datasheet indicates that the MIB counters > should be cleared during setup. Otherwise random numbers are returned > via ethtool -S. Add a quirk and a function to do this. > > Tested on an IMX51. > > Signed-off-by: Andr

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

2017-06-06 Thread Andrew Lunn
Both the IMX51 and IMX53 datasheet indicates that the MIB counters should be cleared during setup. Otherwise random numbers are returned via ethtool -S. Add a quirk and a function to do this. Tested on an IMX51. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/freescale/fec.h | 4