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

Fabio Estevam festevam at gmail.com
Wed Jun 23 01:20:19 AEST 2021


On Tue, Jun 22, 2021 at 9:50 AM Shengjiu Wang <shengjiu.wang at nxp.com> 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 at nxp.com>

Reviewed-by: Fabio Estevam <festevam at gmail.com>


More information about the Linuxppc-dev mailing list