diff options
author | Richard Cochran <richardcochran@gmail.com> | 2020-05-24 21:27:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-26 03:55:17 +0300 |
commit | eabd5c9dd0c0b8d471d144801c8302a4eff6eb27 (patch) | |
tree | 9f3a0283aed87fe5cd117a49e7dc9eeb5439e3db /drivers/rtc/rtc-s5m.c | |
parent | 45af29ca761c275e350cca659856bc56f1035ef9 (diff) | |
download | linux-eabd5c9dd0c0b8d471d144801c8302a4eff6eb27.tar.xz |
ptp_clock: Let the ADJ_OFFSET interface respect the ADJ_NANO flag for PHC devices.
In commit 184ecc9eb260d5a3bcdddc5bebd18f285ac004e9 ("ptp: Add adjphase
function to support phase offset control.") the PTP Hardware Clock
interface expanded to support the ADJ_OFFSET offset mode. However,
the implementation did not respect the traditional yet pedantic
distinction between units of microseconds and nanoseconds signaled by
the ADJ_NANO flag. This patch fixes the issue by adding logic to
handle that flag.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Vincent Cheng <vincent.cheng.xh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/rtc/rtc-s5m.c')
0 files changed, 0 insertions, 0 deletions