[PATCH v2] ASoC: fsl: Fix PM disable depth imbalance in fsl_easrc_probe

2023-10-12 Thread Zhang Shurong
ivers") Signed-off-by: Zhang Shurong --- v1->v2: add Fixes tag sound/soc/fsl/fsl_easrc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index ba62995c909a..ec53bda46a46 100644 --- a/sound/soc/fsl/fsl_easrc.c ++

[PATCH] ASoC: fsl: Fix PM disable depth imbalance in fsl_easrc_probe

2023-10-04 Thread Zhang Shurong
The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. We fix it by calling pm_runtime_disable when error returns. Signed-off-by: Zhang Shurong --- sound/soc/fsl/fsl_easrc.c | 8 ++-- 1