]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: qcom-wled: Correct the sync_toggle sequence
authorKiran Gunda <kgunda@codeaurora.org>
Thu, 18 Mar 2021 12:39:40 +0000 (18:09 +0530)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Mar 2021 09:40:25 +0000 (09:40 +0000)
commitfaade06d539374f87d224fb7e929d65af22052f1
tree57a80878d5c3f0e473dee4e1bf01d119a08d933d
parent6c0edf1035cce69ffc416b3965b807b1e8c6bc6a
backlight: qcom-wled: Correct the sync_toggle sequence

As per the current implementation, after FSC (Full Scale Current)
and brightness update the sync bits are set-then-cleared.
But, the FSC and brightness sync takes place when the sync bits are
set (e.g. on a rising edge). So the hardware team recommends a
clear-then-set approach in order to guarantee such a transition
regardless of the previous register state.

Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/qcom-wled.c