intel_sst: Ensure LPE is in stalled before downloading Firmware
authorJeeja <jeeja.kp@intel.com>
Thu, 6 Oct 2011 15:18:33 +0000 (16:18 +0100)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 21:16:51 +0000 (13:16 -0800)
The FW download fail error occurs mainly when the copy of LPE FW code
and data from audio driver to the DSP IRAM/DRAM is not successful or
encounters error.But there is no mechanism in driver to know if the
memcpy_toio has failed or not.

This patch ensures LPE is in stalled state before copying the firmware

Change-Id: I9a4ed7fbddbfac9140daaa53b949e76729d104a5
Signed-off-by: Jeeja <jeeja.kp@intel.com>
drivers/staging/intel_sst/intel_sst_dsp.c

index a89e1ad..25685fb 100644 (file)
@@ -75,6 +75,7 @@ static int intel_sst_reset_dsp_medfield(void)
        pr_debug("Resetting the DSP in medfield\n");
        csr.full = sst_shim_read(sst_drv_ctx->shim, SST_CSR);
        csr.full |= 0x382;
+       csr.part.run_stall = 0x1;
        sst_shim_write(sst_drv_ctx->shim, SST_CSR, csr.full);
 
        return 0;