[PATCH mlx5-next 2/2] mlx5: extend PTP gettime function to read system clock

2018-12-03 Thread Miroslav Lichvar
Read the system time right before and immediately after reading the low register of the internal timer. This adds support for the PTP_SYS_OFFSET_EXTENDED ioctl. Cc: Richard Cochran Cc: Saeed Mahameed Signed-off-by: Miroslav Lichvar --- .../ethernet/mellanox/mlx5/core/lib/clock.c | 20 +++

Re: [PATCH mlx5-next 2/2] mlx5: extend PTP gettime function to read system clock

2018-12-04 Thread Saeed Mahameed
On Mon, 2018-12-03 at 13:59 +0100, Miroslav Lichvar wrote: > Read the system time right before and immediately after reading the > low > register of the internal timer. This adds support for the > PTP_SYS_OFFSET_EXTENDED ioctl. > > Cc: Richard Cochran > Cc: Saeed Mahameed > Signed-off-by: Mirosl