media: Documentation: admin-guide: cec.rst: document NTP issue
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 27 Mar 2023 08:32:01 +0000 (09:32 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 15 Apr 2023 06:49:01 +0000 (07:49 +0100)
The CEC pin framework is affected by NTP daemons speeding up or slowing
down the system clock. Document this and explain how to fix this for
chronyd.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Documentation/admin-guide/media/cec.rst

index 656dec7..6b30e35 100644 (file)
@@ -55,6 +55,15 @@ Miscellaneous:
   you can control the CEC line through this driver. This supports error
   injection as well.
 
+- cec-gpio and Allwinner A10 (or any other driver that uses the CEC pin
+  framework to drive the CEC pin directly): the CEC pin framework uses
+  high-resolution timers. These timers are affected by NTP daemons that
+  speed up or slow down the clock to sync with the official time. The
+  chronyd server will by default increase or decrease the clock by
+  1/12th. This will cause the CEC timings to go out of spec. To fix this,
+  add a 'maxslewrate 40000' line to chronyd.conf. This limits the clock
+  frequency change to 1/25th, which keeps the CEC timings within spec.
+
 
 Utilities
 =========