Re: [Linuxptp-devel] [PATCH v1 4/4] phc_ctl: Use util.h NSEC_PER_SEC macro instead of local macro

2023-12-04 Thread Rahul Rameshbabu via Linuxptp-devel
On Sat, 02 Dec, 2023 13:56:50 -0800 Richard Cochran wrote: > On Wed, Nov 22, 2023 at 09:36:36AM -0800, Rahul Rameshbabu via Linuxptp-devel > wrote: >> Use the common NSEC_PER_SEC macro in phc_ctl. >> >> Signed-off-by: Rahul Rameshbabu > > Series applied, but I f

[Linuxptp-devel] [PATCH v1 3/4] servo: Use util.h NSEC_PER_SEC macro instead of local macro

2023-11-22 Thread Rahul Rameshbabu via Linuxptp-devel
Use the common NSEC_PER_SEC macro in servo source code. Signed-off-by: Rahul Rameshbabu --- servo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servo.c b/servo.c index ea171cd..6d6753e 100644 --- a/servo.c +++ b/servo.c @@ -26,11 +26,10 @@ #include "pi.h" #include "re

[Linuxptp-devel] [PATCH v1 1/4] util: Introduce NSEC_PER_SEC macro

2023-11-22 Thread Rahul Rameshbabu via Linuxptp-devel
NSEC_PER_SEC conversion is used throughout the linuxptp source code. Introduce a common macro that can be used throughout the linuxptp codebase for this purpose. Signed-off-by: Rahul Rameshbabu --- util.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util.h b/util.h index 2bbde71..1cbd9b

[Linuxptp-devel] [PATCH v1 2/4] port: Use util.h NSEC_PER_SEC macro instead of local macro

2023-11-22 Thread Rahul Rameshbabu via Linuxptp-devel
Use the common NSEC_PER_SEC macro in port-related source code. Signed-off-by: Rahul Rameshbabu --- port.c | 14 +++--- port_private.h | 3 +-- tc.c | 9 - 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/port.c b/port.c index 5803cd3..79f3702 1

[Linuxptp-devel] [PATCH v1 4/4] phc_ctl: Use util.h NSEC_PER_SEC macro instead of local macro

2023-11-22 Thread Rahul Rameshbabu via Linuxptp-devel
Use the common NSEC_PER_SEC macro in phc_ctl. Signed-off-by: Rahul Rameshbabu --- phc_ctl.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/phc_ctl.c b/phc_ctl.c index 893d87d..c5d16ae 100644 --- a/phc_ctl.c +++ b/phc_ctl.c @@ -48,8 +48,6 @@ #include "util.h" #inclu

Re: [Linuxptp-devel] [PATCH v3 1/5] Rename NSEC2SEC as NSEC_PER_SEC and refactor to util.h

2023-11-09 Thread Rahul Rameshbabu via Linuxptp-devel
On Thu, 09 Nov, 2023 21:17:03 -0800 Richard Cochran wrote: > On Mon, Sep 25, 2023 at 10:03:09AM -0700, Rahul Rameshbabu via Linuxptp-devel > wrote: >> The name NSEC2SEC implies converting nanoseconds to seconds, but the value >> used for the macro converts seconds to nanosec

Re: [Linuxptp-devel] [PATCH 1/2] include string.h for strncpy()

2023-10-20 Thread Rahul Rameshbabu via Linuxptp-devel
On Fri, 20 Oct, 2023 12:47:39 -0700 Richard Cochran wrote: > On Thu, Oct 19, 2023 at 03:50:20PM +0100, Luca Fancellu wrote: >> From: Khem Raj >> >> Signed-off-by: Khem Raj >> --- >> interface.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/interface.c b/interface.c >> index 292

[Linuxptp-devel] [PATCH v3 4/5] phc_ctl: Use pr_notice instead of pr_err for displaying adjusted frequency

2023-09-25 Thread Rahul Rameshbabu via Linuxptp-devel
Adjusted frequency value displayed by do_freq is not an error, but a notication to the user. pr_err should not be used for providing notices with information about successful operations. Fixes: bdb6a35883b0 ("linuxptp: add phc_ctl program to help debug PHC devices") Signed-off-by: Rahul Rameshbabu

[Linuxptp-devel] [PATCH v3 0/5] General improvements for linuxptp focused around phase adjustment

2023-09-25 Thread Rahul Rameshbabu via Linuxptp-devel
The main focus of this submission is adding support for testing ADJ_OFFSET with phc_ctl and querying the maximum supported ADJ_OFFSET adjustment that a device is capable of. Some other minor cleanups are also included in the submission. The patch that introduces support for querying the maximum of

[Linuxptp-devel] [PATCH v3 2/5] phc_ctl: Add phase command to support ADJ_OFFSET

2023-09-25 Thread Rahul Rameshbabu via Linuxptp-devel
Take double precision floating point representation of an offset value in seconds. Feed this value to the PHC's phase control keyword. Signed-off-by: Rahul Rameshbabu --- phc_ctl.8 | 4 phc_ctl.c | 55 --- 2 files changed, 52 insertions(+

[Linuxptp-devel] [PATCH v3 5/5] phc_ctl: Handle errors returned by various clockadj helpers

2023-09-25 Thread Rahul Rameshbabu via Linuxptp-devel
Do not print success notices if clockadj operation fails using return values provided by the clockadj helpers. Signed-off-by: Rahul Rameshbabu --- Notes: Changes: v1->v2: - Accounted for conditional formatting changes suggested by Erez. - Added pre-emptive return o

[Linuxptp-devel] [PATCH v3 1/5] Rename NSEC2SEC as NSEC_PER_SEC and refactor to util.h

2023-09-25 Thread Rahul Rameshbabu via Linuxptp-devel
The name NSEC2SEC implies converting nanoseconds to seconds, but the value used for the macro converts seconds to nanoseconds. NSEC_PER_SEC is the accurate name for this macro. Move macro to common location in util.h. Signed-off-by: Rahul Rameshbabu --- Notes: Changes: v2->v3:

[Linuxptp-devel] [PATCH v3 3/5] phc_ctl: Add maximum offset capability

2023-09-25 Thread Rahul Rameshbabu via Linuxptp-devel
Advertise the maximum offset that can be fed to the PHC phase control keyword. Signed-off-by: Rahul Rameshbabu --- missing.h | 9 + phc_ctl.c | 4 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/missing.h b/missing.h index 79a87d4..165a297 100644 --- a/missing.h +++ b

Re: [Linuxptp-devel] [PATCH v2 1/5] Rename NSEC2SEC as NSEC_PER_SEC and refactor to util.h

2023-09-22 Thread Rahul Rameshbabu via Linuxptp-devel
On Fri, 22 Sep, 2023 15:47:15 +0200 Przemek Kitszel wrote: > On 9/21/23 23:25, Rahul Rameshbabu via Linuxptp-devel wrote: >> The name NSEC2SEC implies converting nanoseconds to seconds, but the value >> used for the macro converts seconds to nanoseconds. NSEC_PER_SEC is the >&

[Linuxptp-devel] [PATCH v2 5/5] phc_ctl: Handle errors returned by various clockadj helpers

2023-09-21 Thread Rahul Rameshbabu via Linuxptp-devel
Do not print success notices if clockadj operation fails using return values provided by the clockadj helpers. Signed-off-by: Rahul Rameshbabu --- Notes: Changes: v1->v2: - Accounted for conditional formatting changes suggested by Erez. - Added pre-emptive return o

[Linuxptp-devel] [PATCH v2 2/5] phc_ctl: Add phase command to support ADJ_OFFSET

2023-09-21 Thread Rahul Rameshbabu via Linuxptp-devel
Take double precision floating point representation of an offset value in seconds. Feed this value to the PHC's phase control keyword. Signed-off-by: Rahul Rameshbabu --- phc_ctl.8 | 4 phc_ctl.c | 55 --- 2 files changed, 52 insertions(+

[Linuxptp-devel] [PATCH v2 3/5] phc_ctl: Add maximum offset capability

2023-09-21 Thread Rahul Rameshbabu via Linuxptp-devel
Advertise the maximum offset that can be fed to the PHC phase control keyword. Signed-off-by: Rahul Rameshbabu --- missing.h | 9 + phc_ctl.c | 4 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/missing.h b/missing.h index 79a87d4..165a297 100644 --- a/missing.h +++ b

[Linuxptp-devel] [PATCH v2 4/5] phc_ctl: Use pr_notice instead of pr_err for displaying adjusted frequency

2023-09-21 Thread Rahul Rameshbabu via Linuxptp-devel
Adjusted frequency value displayed by do_freq is not an error, but a notication to the user. pr_err should not be used for providing notices with information about successful operations. Fixes: bdb6a35883b0 ("linuxptp: add phc_ctl program to help debug PHC devices") Signed-off-by: Rahul Rameshbabu

[Linuxptp-devel] [PATCH v2 0/5] General improvements for linuxptp focused around phase adjustment

2023-09-21 Thread Rahul Rameshbabu via Linuxptp-devel
The main focus of this submission is adding support for testing ADJ_OFFSET with phc_ctl and querying the maximum supported ADJ_OFFSET adjustment that a device is capable of. Some other minor cleanups are also included in the submission. The patch that introduces support for querying the maximum of

[Linuxptp-devel] [PATCH v2 1/5] Rename NSEC2SEC as NSEC_PER_SEC and refactor to util.h

2023-09-21 Thread Rahul Rameshbabu via Linuxptp-devel
The name NSEC2SEC implies converting nanoseconds to seconds, but the value used for the macro converts seconds to nanoseconds. NSEC_PER_SEC is the accurate name for this macro. Move macro to common location in util.h. Signed-off-by: Rahul Rameshbabu --- phc_ctl.c | 8 +++- port.c

Re: [Linuxptp-devel] [PATCH RESEND v1 3/5] phc_ctl: Add maximum offset capability

2023-09-18 Thread Rahul Rameshbabu via Linuxptp-devel
Hi Erez, On Tue, 05 Sep, 2023 22:15:47 +0200 Erez wrote: > On Tue, 5 Sept 2023 at 21:56, Rahul Rameshbabu via Linuxptp-devel > wrote: > > Advertise the maximum offset that can be fed to the PHC phase control > keyword. > > Someone already sent this patch, a few months

Re: [Linuxptp-devel] [PATCH RESEND v1 2/5] phc_ctl: Add phase command to support ADJ_OFFSET

2023-09-18 Thread Rahul Rameshbabu via Linuxptp-devel
Hi Erez, On Wed, 06 Sep, 2023 23:05:12 +0200 Erez wrote: > On Wed, 6 Sept 2023 at 00:56, Rahul Rameshbabu via Linuxptp-devel > wrote: > > Take double precision floating point representation of an offset value in > seconds. Feed this value to the PHC's phase control keyw

[Linuxptp-devel] [PATCH RESEND v1 4/5] phc_ctl: Use pr_notice instead of pr_err for displaying adjusted frequency

2023-09-05 Thread Rahul Rameshbabu via Linuxptp-devel
Adjusted frequency value displayed by do_freq is not an error, but a notication to the user. pr_err should not be used for providing notices with information about successful operations. Fixes: bdb6a35883b0 ("linuxptp: add phc_ctl program to help debug PHC devices") Signed-off-by: Rahul Rameshbabu

[Linuxptp-devel] [PATCH RESEND v1 2/5] phc_ctl: Add phase command to support ADJ_OFFSET

2023-09-05 Thread Rahul Rameshbabu via Linuxptp-devel
Take double precision floating point representation of an offset value in seconds. Feed this value to the PHC's phase control keyword. Signed-off-by: Rahul Rameshbabu --- phc_ctl.8 | 4 phc_ctl.c | 55 --- 2 files changed, 52 insertions(+

[Linuxptp-devel] [PATCH RESEND v1 1/5] Rename NSEC2SEC as NSEC_PER_SEC and refactor to util.h

2023-09-05 Thread Rahul Rameshbabu via Linuxptp-devel
The name NSEC2SEC implies converting nanoseconds to seconds, but the value used for the macro converts seconds to nanoseconds. NSEC_PER_SEC is the accurate name for this macro. Move macro to common location in util.h. Signed-off-by: Rahul Rameshbabu --- Notes: Changes since RFC: *

[Linuxptp-devel] [PATCH RESEND v1 0/5] General improvements for linuxptp focused around phase adjustment

2023-09-05 Thread Rahul Rameshbabu via Linuxptp-devel
The main focus of this submission is adding support for testing ADJ_OFFSET with phc_ctl and querying the maximum supported ADJ_OFFSET adjustment that a device is capable of. Some other minor cleanups are also included in the submission. The patch that introduces support for querying the maximum of

[Linuxptp-devel] [PATCH RESEND v1 3/5] phc_ctl: Add maximum offset capability

2023-09-05 Thread Rahul Rameshbabu via Linuxptp-devel
Advertise the maximum offset that can be fed to the PHC phase control keyword. Signed-off-by: Rahul Rameshbabu --- missing.h | 9 + phc_ctl.c | 4 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/missing.h b/missing.h index 79a87d4..165a297 100644 --- a/missing.h +++ b

[Linuxptp-devel] [PATCH RESEND v1 5/5] phc_ctl: Handle errors returned by various clockadj helpers

2023-09-05 Thread Rahul Rameshbabu via Linuxptp-devel
Do not print success notices if clockadj operation fails using return values provided by the clockadj helpers. Signed-off-by: Rahul Rameshbabu --- phc_ctl.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/phc_ctl.c b/phc_ctl.c index 34d9e0c..e174189 100644 --

[Linuxptp-devel] [PATCH RESEND v1 3/5] phc_ctl: Add maximum offset capability

2023-07-14 Thread Rahul Rameshbabu via Linuxptp-devel
Advertise the maximum offset that can be fed to the PHC phase control keyword. Signed-off-by: Rahul Rameshbabu --- missing.h | 9 + phc_ctl.c | 4 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/missing.h b/missing.h index 79a87d4..165a297 100644 --- a/missing.h +++ b

[Linuxptp-devel] [PATCH RESEND v1 2/5] phc_ctl: Add phase command to support ADJ_OFFSET

2023-07-14 Thread Rahul Rameshbabu via Linuxptp-devel
Take double precision floating point representation of an offset value in seconds. Feed this value to the PHC's phase control keyword. Signed-off-by: Rahul Rameshbabu --- phc_ctl.8 | 4 phc_ctl.c | 55 --- 2 files changed, 52 insertions(+

[Linuxptp-devel] [PATCH RESEND v1 1/5] Rename NSEC2SEC as NSEC_PER_SEC and refactor to util.h

2023-07-14 Thread Rahul Rameshbabu via Linuxptp-devel
The name NSEC2SEC implies converting nanoseconds to seconds, but the value used for the macro converts seconds to nanoseconds. NSEC_PER_SEC is the accurate name for this macro. Move macro to common location in util.h. Signed-off-by: Rahul Rameshbabu --- Notes: Changes since RFC: *

[Linuxptp-devel] [PATCH RESEND v1 5/5] phc_ctl: Handle errors returned by various clockadj helpers

2023-07-14 Thread Rahul Rameshbabu via Linuxptp-devel
Do not print success notices if clockadj operation fails using return values provided by the clockadj helpers. Signed-off-by: Rahul Rameshbabu --- phc_ctl.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/phc_ctl.c b/phc_ctl.c index 34d9e0c..e174189 100644 --

[Linuxptp-devel] [PATCH RESEND v1 0/5] General improvements for linuxptp focused around phase adjustment

2023-07-14 Thread Rahul Rameshbabu via Linuxptp-devel
The main focus of this submission is adding support for testing ADJ_OFFSET with phc_ctl and querying the maximum supported ADJ_OFFSET adjustment that a device is capable of. Some other minor cleanups are also included in the submission. The patch that introduces support for querying the maximum of

[Linuxptp-devel] [PATCH RESEND v1 4/5] phc_ctl: Use pr_notice instead of pr_err for displaying adjusted frequency

2023-07-14 Thread Rahul Rameshbabu via Linuxptp-devel
Adjusted frequency value displayed by do_freq is not an error, but a notication to the user. pr_err should not be used for providing notices with information about successful operations. Fixes: bdb6a35883b0 ("linuxptp: add phc_ctl program to help debug PHC devices") Signed-off-by: Rahul Rameshbabu

Re: [Linuxptp-devel] [PATCH 0/5] General improvements for linuxptp focused around phase adjustment

2023-06-22 Thread Rahul Rameshbabu via Linuxptp-devel
On Thu, 22 Jun, 2023 12:11:05 +0200 Erez wrote: > On Wed, 21 Jun 2023 at 01:13, Rahul Rameshbabu wrote: > > Hi Erez, > > On Wed, 21 Jun, 2023 00:33:28 +0200 Erez wrote: > > Hi, > > > > You already submitted the patch seria. > > Has it changed? > > Yes, I took feedback from the RFC (reques

Re: [Linuxptp-devel] [PATCH 0/5] General improvements for linuxptp focused around phase adjustment

2023-06-20 Thread Rahul Rameshbabu via Linuxptp-devel
ee). I did not see a mention of that on the mailing list. Might have missed it. Thanks, Rahul Rameshbabu > > Erez > > On Tue, 20 Jun 2023 at 19:39, Rahul Rameshbabu via Linuxptp-devel > wrote: > > The main focus of this submission is adding support for testing ADJ_OFF

[Linuxptp-devel] [PATCH 5/5] phc_ctl: Handle errors returned by various clockadj helpers

2023-06-20 Thread Rahul Rameshbabu via Linuxptp-devel
Do not print success notices if clockadj operation fails using return values provided by the clockadj helpers. Signed-off-by: Rahul Rameshbabu --- phc_ctl.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/phc_ctl.c b/phc_ctl.c index 34d9e0c..e174189 100644 --

[Linuxptp-devel] [PATCH 1/5] Rename NSEC2SEC as NSEC_PER_SEC and refactor to util.h

2023-06-20 Thread Rahul Rameshbabu via Linuxptp-devel
The name NSEC2SEC implies converting nanoseconds to seconds, but the value used for the macro converts seconds to nanoseconds. NSEC_PER_SEC is the accurate name for this macro. Move macro to common location in util.h. Signed-off-by: Rahul Rameshbabu --- Notes: Changes since RFC: *

[Linuxptp-devel] [PATCH 0/5] General improvements for linuxptp focused around phase adjustment

2023-06-20 Thread Rahul Rameshbabu via Linuxptp-devel
The main focus of this submission is adding support for testing ADJ_OFFSET with phc_ctl and querying the maximum supported ADJ_OFFSET adjustment that a device is capable of. Some other minor cleanups are also included in the submission. That patch the introduces support for querying the maximum of

[Linuxptp-devel] [PATCH 2/5] phc_ctl: Add phase command to support ADJ_OFFSET

2023-06-20 Thread Rahul Rameshbabu via Linuxptp-devel
Take double precision floating point representation of an offset value in seconds. Feed this value to the PHC's phase control keyword. Signed-off-by: Rahul Rameshbabu --- phc_ctl.8 | 4 phc_ctl.c | 55 --- 2 files changed, 52 insertions(+

[Linuxptp-devel] [PATCH 3/5] phc_ctl: Add maximum offset capability

2023-06-20 Thread Rahul Rameshbabu via Linuxptp-devel
Advertise the maximum offset that can be fed to the PHC phase control keyword. Signed-off-by: Rahul Rameshbabu --- missing.h | 9 + phc_ctl.c | 4 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/missing.h b/missing.h index 79a87d4..165a297 100644 --- a/missing.h +++ b

[Linuxptp-devel] [PATCH 4/5] phc_ctl: Use pr_notice instead of pr_err for displaying adjusted frequency

2023-06-20 Thread Rahul Rameshbabu via Linuxptp-devel
Adjusted frequency value displayed by do_freq is not an error, but a notication to the user. pr_err should not be used for providing notices with information about successful operations. Fixes: bdb6a35883b0 ("linuxptp: add phc_ctl program to help debug PHC devices") Signed-off-by: Rahul Rameshbabu

Re: [Linuxptp-devel] [PATCH RFC 1/5] Rename NSEC2SEC as NSEC_PER_SEC

2023-06-07 Thread Rahul Rameshbabu via Linuxptp-devel
On Wed, 07 Jun, 2023 18:04:08 +0200 Maciek Machnikowski wrote: > On 6/7/2023 17:03, Erez wrote: >> >> >> On Wed, 7 Jun 2023 at 00:09, Rahul Rameshbabu via Linuxptp-devel >> > <mailto:linuxptp-devel@lists.sourceforge.net>> wrote: >> >>

[Linuxptp-devel] [PATCH RFC 5/5] phc_ctl: Handle errors returned by various clockadj helpers

2023-06-06 Thread Rahul Rameshbabu via Linuxptp-devel
Do not print success notices if clockadj operation fails using return values provided by the clockadj helpers. Signed-off-by: Rahul Rameshbabu --- phc_ctl.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/phc_ctl.c b/phc_ctl.c index 0db9352..70ee1e9 100644 --

[Linuxptp-devel] [PATCH RFC 2/5] phc_ctl: Add phase command to support ADJ_OFFSET

2023-06-06 Thread Rahul Rameshbabu via Linuxptp-devel
Take double precision floating point representation of an offset value in seconds. Feed this value to the PHC's phase control keyword. Signed-off-by: Rahul Rameshbabu --- phc_ctl.8 | 4 phc_ctl.c | 55 --- 2 files changed, 52 insertions(+

[Linuxptp-devel] [PATCH RFC 1/5] Rename NSEC2SEC as NSEC_PER_SEC

2023-06-06 Thread Rahul Rameshbabu via Linuxptp-devel
The name NSEC2SEC implies converting nanoseconds to seconds, but the value used for the macro converts seconds to nanoseconds. NSEC_PER_SEC is the accurate name for this macro. Signed-off-by: Rahul Rameshbabu --- phc_ctl.c | 8 port.c | 14 +++--- port_private.h |

[Linuxptp-devel] [PATCH RFC 4/5] phc_ctl: Use pr_notice instead of pr_err for displaying adjusted frequency

2023-06-06 Thread Rahul Rameshbabu via Linuxptp-devel
Adjusted frequency value displayed by do_freq is not an error, but a notication to the user. pr_err should not be used for providing notices with information about successful operations. Fixes: bdb6a35883b0 ("linuxptp: add phc_ctl program to help debug PHC devices") Signed-off-by: Rahul Rameshbabu

[Linuxptp-devel] [PATCH RFC 0/5] General improvements for linuxptp focused around phase adjustment

2023-06-06 Thread Rahul Rameshbabu via Linuxptp-devel
The main focus of this submission is adding support for testing ADJ_OFFSET with phc_ctl and querying the maximum supported ADJ_OFFSET adjustment that a device is capable of. Some other minor cleanups are also included in the submission. The patch the introduces support for querying the maximum off

[Linuxptp-devel] [PATCH RFC 3/5] phc_ctl: Add maximum offset capability

2023-06-06 Thread Rahul Rameshbabu via Linuxptp-devel
Advertise the maximum offset that can be fed to the PHC phase control keyword. Signed-off-by: Rahul Rameshbabu --- missing.h | 9 + phc_ctl.c | 4 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/missing.h b/missing.h index 79a87d4..165a297 100644 --- a/missing.h +++ b

Re: [Linuxptp-devel] [PATCH 0/2] Improve performance of the nullf servo by using write_phase_mode

2023-01-04 Thread Rahul Rameshbabu via Linuxptp-devel
Hi, Any feedback on this patch would be appreciated. I believe this patch is useful for improving the performance of the nullf servo, when write_phase_mode is enabled. Provided below is demonstration of the performance benefits of the patch. By transitioning to state s3 (SERVO_LOCKED_STABLE), we s

[Linuxptp-devel] [PATCH 0/2] Improve performance of the nullf servo by using write_phase_mode

2022-12-20 Thread Rahul Rameshbabu via Linuxptp-devel
In the upstream linuxptp tree, the nullf servo has no way to transition to the SERVO_LOCKED state except when the offset is zero. Transitioning to the SERVO_LOCKED state is important for a servo that makes no frequency adjustments because SERVO_LOCKED_STABLE is the only state that invokes write_pha

[Linuxptp-devel] [PATCH 1/2] Improve efficiency of nullf servo synchronization

2022-12-20 Thread Rahul Rameshbabu via Linuxptp-devel
The nullf servo can now enter the SERVO_LOCKED_STABLE state by transitioning first to the SERVO_LOCKED state when the offset is less than the set value for offset_threshold. If offset_threshold is not set, the SERVO_LOCKED state can be entered when the offset is less than or equal to the set value

[Linuxptp-devel] [PATCH 2/2] Fix SERVO_JUMP docstring comment

2022-12-20 Thread Rahul Rameshbabu via Linuxptp-devel
Signed-off-by: Rahul Rameshbabu --- servo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servo.h b/servo.h index 6c30d33..6e42b0a 100644 --- a/servo.h +++ b/servo.h @@ -48,7 +48,7 @@ enum servo_state { SERVO_UNLOCKED, /** -* The is ready to track a