mbox series

[net-next,0/5] Virtual PTP clock improvements and fix

Message ID 20220127114536.1121765-1-mlichvar@redhat.com (mailing list archive)
Headers show
Series Virtual PTP clock improvements and fix | expand

Message

Miroslav Lichvar Jan. 27, 2022, 11:45 a.m. UTC
The first patch fixes an oops when unloading a driver with PTP clock and
enabled virtual clocks.

The other patches add missing features to make synchronization with
virtual clocks work as well as with the physical clock.

Miroslav Lichvar (5):
  ptp: unregister virtual clocks when unregistering physical clock.
  ptp: increase maximum adjustment of virtual clocks.
  ptp: add gettimex64() to virtual clocks.
  ptp: add getcrosststamp() to virtual clocks.
  ptp: start virtual clocks at current system time.

 drivers/ptp/ptp_clock.c  | 11 ++++++--
 drivers/ptp/ptp_vclock.c | 59 +++++++++++++++++++++++++++++++++++++---
 2 files changed, 64 insertions(+), 6 deletions(-)

Comments

Richard Cochran Jan. 27, 2022, 10:02 p.m. UTC | #1
On Thu, Jan 27, 2022 at 12:45:31PM +0100, Miroslav Lichvar wrote:
> The first patch fixes an oops when unloading a driver with PTP clock and
> enabled virtual clocks.
> 
> The other patches add missing features to make synchronization with
> virtual clocks work as well as with the physical clock.
> 
> Miroslav Lichvar (5):
>   ptp: unregister virtual clocks when unregistering physical clock.
>   ptp: increase maximum adjustment of virtual clocks.
>   ptp: add gettimex64() to virtual clocks.
>   ptp: add getcrosststamp() to virtual clocks.

For patches 1-4:

Acked-by: Richard Cochran <richardcochran@gmail.com>

>   ptp: start virtual clocks at current system time.

(I don't agree with this last one)

Thanks,
Richard