From eae3b2f34cd1a7a0301a8fe087a5a02b8a226859 Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Wed, 3 Oct 2018 16:45:57 +0300 Subject: MLK-18497-13: ASoC: fsl: dsp: Skip SDRAM section update if fw is already loaded If the DSP firmware binary is already loaded it is wrong to update SDRAM located sections because we will overwrite and data stored there. This makes suspend/resume work. Reviewed-by: Cosmin-Gabriel Samoila Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_dsp_proxy.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sound/soc/fsl/fsl_dsp_proxy.h') diff --git a/sound/soc/fsl/fsl_dsp_proxy.h b/sound/soc/fsl/fsl_dsp_proxy.h index fabcf768fb88..8df703efea63 100644 --- a/sound/soc/fsl/fsl_dsp_proxy.h +++ b/sound/soc/fsl/fsl_dsp_proxy.h @@ -299,6 +299,7 @@ struct xf_proxy { struct completion cmd_complete; int is_ready; + int is_loaded; /* ...internal lock */ spinlock_t lock; -- cgit v1.2.3