]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpll: zl3073x: Fix output pin phase adjustment sign
authorIvan Vecera <ivecera@redhat.com>
Thu, 5 Feb 2026 18:10:55 +0000 (19:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Feb 2026 04:36:37 +0000 (20:36 -0800)
commit5d41f95f5d0bd9db02f3f16a649d0631f71e9fdb
tree3b61c65e5e57c45449628fa6a35cf27d4334202e
parent7237d23d2e58367852e05da3a522ee422f2aa7d4
dpll: zl3073x: Fix output pin phase adjustment sign

The output pin phase adjustment functions incorrectly negate the phase
compensation value.

Per the ZL3073x datasheet, the output phase compensation register is
simply a signed two's complement integer where:
 - Positive values move the phase later in time
 - Negative values move the phase earlier in time

No negation is required. The erroneous negation caused phase adjustments
to be applied in the wrong direction.

Note that input pin phase adjustment correctly uses negation because the
hardware has an inverted convention for input references (positive moves
phase earlier, negative moves phase later).

Fixes: 6287262f761e ("dpll: zl3073x: Add support to adjust phase")
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20260205181055.129768-1-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/dpll/zl3073x/dpll.c