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)
commit5eb622eec92c224c9e51ce9bf0e99a04c875f8bf
tree57a80878d5c3f0e473dee4e1bf01d119a08d933d
parent4d6e9cdff7fbb6bef3e5559596fab3eeffaf95ca
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