Re: [PATCH] pwm: mtk-disp: Fix the parameters calculated by the enabled flag of disp_pwm.

From: AngeloGioacchino Del Regno
Date: Tue Aug 30 2022 - 06:36:58 EST


Il 29/08/22 06:04, xinlei.lee@xxxxxxxxxxxx ha scritto:
From: xinlei lee <xinlei.lee@xxxxxxxxxxxx>

In the original mtk_disp_pwm_get_state() function, the result of reading
con0 & BIT(0) is enabled as disp_pwm.
In order to conform to the register table, we should use the disp_pwm
base address as the enabled judgment.

Fixes: 3f2b16734914 ("pwm: mtk-disp: Implement atomic API .get_state()")

Signed-off-by: xinlei lee <xinlei.lee@xxxxxxxxxxxx>
Reviewed-by: Miles Chen <miles.chen@xxxxxxxxxxxx>

This fix is valid for all MediaTek SoCs that are currently supported in
pwm-mtk-disp (and some others that aren't supported yet).

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