Re: [PATCH v3] pwm: mtk_disp: Fix the disable flow of disp_pwm

From: AngeloGioacchino Del Regno
Date: Wed May 31 2023 - 04:25:25 EST


Il 31/05/23 05:10, Shuijing Li ha scritto:
There is a flow error in the original mtk_disp_pwm_apply() function.
If this function is called when the clock is disabled, there will be a
chance to operate the disp_pwm register, resulting in disp_pwm exception.
Fix this accordingly.

Fixes: 888a623db5d0 ("pwm: mtk-disp: Implement atomic API .apply()")
Signed-off-by: Shuijing Li <shuijing.li@xxxxxxxxxxxx>
Reviewed-by: Matthias Brugger <matthias.bgg@xxxxxxxxx>
Tested-by: Fei Shao <fshao@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>