diff options
| author | 2026-10-11 08:12:07 +0200 | |
|---|---|---|
| committer | 2026-10-16 18:01:13 -0700 | |
| commit | 23171065fb436195981ca32f9e49dcf852dbd018 (patch) | |
| tree | 85ef822573df459ac649f1c8cc084062318089bf /scripts/Makefile.thinlto | |
| parent | selftests: net: bareudp: Add stream tests with software GSO (diff) | |
dpll: zl3073x: do not offer 0 Hz as a supported pin frequency
zl3073x_pin_props_get() always adds the current pin frequency to the
supported list without checking it. A sub-Hz frequency reads back as
0 Hz, so 0 Hz can then be requested and the output frequency set
callback divides by zero. A 0 Hz entry in the firmware node is not
rejected either: it is offered for an input pin, and for an output pin
zl3073x_pin_check_freq() divides by it at probe time.
Do not add a 0 Hz current frequency and reject 0 Hz in
zl3073x_pin_check_freq(). If the list ends up empty, do not publish it
at all, as the DPLL core rejects an empty non-NULL list.
Found by code inspection, not triggered at runtime.
Fixes: 85a9aaac4a38 ("dpll: zl3073x: Include current frequency in supported frequencies list")
Reviewed-by: Petr Oros <poros@redhat.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Fixes: a99a9f0ebdaa ("dpll: zl3073x: Read DPLL types and pin properties from system firmware")
Link: https://patch.msgid.link/20261011061211.448373-2-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
