diff options
| author | xinlei lee <[email protected]> | 2022-12-02 18:35:06 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2022-12-06 11:46:03 +0000 |
| commit | 0b5ef3429d8f78427558ab0dcbfd862098ba2a63 (patch) | |
| tree | 15d77767cdebdd94458ae9b9aae24324e549ec81 /drivers/pwm/pwm-stm32.c | |
| parent | pwm: sifive: Call pwm_sifive_update_clock() while mutex is held (diff) | |
| download | kernel-0b5ef3429d8f78427558ab0dcbfd862098ba2a63.tar.gz kernel-0b5ef3429d8f78427558ab0dcbfd862098ba2a63.zip | |
pwm: mtk-disp: Fix the parameters calculated by the enabled flag of disp_pwm
In the original mtk_disp_pwm_get_state() function wrongly uses bit 0 of
CON0 to judge if the PWM is enabled.
However that is indicated by a bit (at a machine dependent position) in
the DISP_PWM_EN register. Fix this accordingly.
Fixes: 3f2b16734914 ("pwm: mtk-disp: Implement atomic API .get_state()")
Signed-off-by: xinlei lee <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions
