[PATCH 2/2] pwm/mtk_disp: fix update reg issue when chip doesn't have commit
Jitao Shi
jitao.shi at mediatek.com
Sun May 19 10:56:49 UTC 2019
The setting of disable double buffer will lose when suspend and resume.
So config them again in pwm config.
Signed-off-by: Jitao Shi <jitao.shi at mediatek.com>
---
drivers/pwm/pwm-mtk-disp.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/pwm/pwm-mtk-disp.c b/drivers/pwm/pwm-mtk-disp.c
index 27079acc3e1d..14ef981164d3 100644
--- a/drivers/pwm/pwm-mtk-disp.c
+++ b/drivers/pwm/pwm-mtk-disp.c
@@ -130,6 +130,13 @@ static int mtk_disp_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
mtk_disp_pwm_update_bits(mdp, mdp->data->commit,
mdp->data->commit_mask,
0x0);
+ } else {
+ mtk_disp_pwm_update_bits(mdp, mdp->data->bls_debug,
+ mdp->data->bls_debug_mask,
+ mdp->data->bls_debug_mask);
+ mtk_disp_pwm_update_bits(mdp, mdp->data->con0,
+ mdp->data->con0_sel,
+ mdp->data->con0_sel);
}
clk_disable_unprepare(mdp->clk_mm);
--
2.21.0
More information about the dri-devel
mailing list