Re: [PATCH] ASoC: fsl_spdif: Fix unexpected interrupt after suspend

From: Fabio Estevam
Date: Tue Jun 22 2021 - 11:20:38 EST


On Tue, Jun 22, 2021 at 9:50 AM Shengjiu Wang <shengjiu.wang@xxxxxxx> wrote:
>
> When system enter suspend, the machine driver suspend callback
> function will be called, then the cpu driver trigger callback
> (SNDRV_PCM_TRIGGER_SUSPEND) be called, it would disable the
> interrupt.
>
> But the machine driver suspend and cpu dai driver suspend order
> maybe changed, the cpu dai driver's suspend callback is called before
> machine driver's suppend callback, then the interrupt is not cleared
> successfully in trigger callback.
>
> So need to clear interrupts in cpu dai driver's suspend callback
> to avoid such issue.
>
> Fixes: 9cb2b3796e08 ("ASoC: fsl_spdif: Add pm runtime function")
> Signed-off-by: Shengjiu Wang <shengjiu.wang@xxxxxxx>

Reviewed-by: Fabio Estevam <festevam@xxxxxxxxx>