summaryrefslogtreecommitdiff
path: root/drivers/dma/ti/k3-udma.c
diff options
context:
space:
mode:
authorBjorn Andersson <quic_bjorande@quicinc.com>2023-05-15 19:26:04 +0300
committerJohan Hovold <johan@kernel.org>2023-06-03 18:00:28 +0300
commitb05d39466ba111fc3775d5d46180b73c34ebe8f7 (patch)
tree80f36fd138a642d7f7867ff34a239a4115cfcaa1 /drivers/dma/ti/k3-udma.c
parent7877cb91f1081754a1487c144d85dc0d2e2e7fc4 (diff)
downloadlinux-b05d39466ba111fc3775d5d46180b73c34ebe8f7.tar.xz
leds: qcom-lpg: Fix PWM period limits
The introduction of high resolution PWM support changed the order of the operations in the calculation of min and max period. The result in both divisions is in most cases a truncation to 0, which limits the period to the range of [0, 0]. Both numerators (and denominators) are within 64 bits, so the whole expression can be put directly into the div64_u64, instead of doing it partially. Fixes: b00d2ed37617 ("leds: rgb: leds-qcom-lpg: Add support for high resolution PWM") Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> Tested-by: Steev Klimaszewski <steev@kali.org> Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Acked-by: Lee Jones <lee@kernel.org> Tested-by: Johan Hovold <johan+linaro@kernel.org> Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD Link: https://lore.kernel.org/r/20230515162604.649203-1-quic_bjorande@quicinc.com Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/dma/ti/k3-udma.c')
0 files changed, 0 insertions, 0 deletions