Re: [PATCH v2 2/2] media: platform: mtk-mdp3: fix error handling about components clock_on

From: AngeloGioacchino Del Regno
Date: Mon Oct 03 2022 - 08:37:31 EST


Il 03/10/22 09:08, Moudy Ho ha scritto:
Add goto statement in mdp_comp_clock_on() to avoid error code not being
propagated or returning positive values.
This change also performs a well-timed clock_off when an error occurs, and
reduces unnecessary error logging in mdp_cmdq_send().

Fixes: 61890ccaefaf ("media: platform: mtk-mdp3: add MediaTek MDP3 driver")
Signed-off-by: Moudy Ho <moudy.ho@xxxxxxxxxxxx>

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