Messages in this thread | | | Date | Fri, 16 Aug 2019 15:24:34 +0200 | From | Andrew Lunn <> | Subject | Re: [PATCH v5 12/13] net: phy: adin: add ethtool get_stats support |
| |
On Fri, Aug 16, 2019 at 04:10:10PM +0300, Alexandru Ardelean wrote: > This change implements retrieving all the error counters from the PHY. > > The counters require that the RxErrCnt register (0x0014) be read first, > after which copies of the counters are latched into the registers. This > ensures that all registers read after RxErrCnt are synchronized at the > moment that they are read. > > The counter values need to be accumulated by the driver, as each time that > RxErrCnt is read, the values that are latched are the ones that have > incremented from the last read. > > Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
| |