Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03de8c2e authored by Jeeja KP's avatar Jeeja KP Committed by Mark Brown
Browse files

ASoC: Intel: bxtn: Reload the firmware in case of D3 failure



If D3 IPC fails or times out, firmware needs to be reloaded as driver
continues the reset.
So set the fw_load flag to false to reload the firmware in D0.

Signed-off-by: default avatarJeeja KP <jeeja.kp@intel.com>
Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1fb344a3
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -533,10 +533,16 @@ static int bxt_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id)


	ret = skl_ipc_set_dx(&skl->ipc, BXT_INSTANCE_ID,
	ret = skl_ipc_set_dx(&skl->ipc, BXT_INSTANCE_ID,
				BXT_BASE_FW_MODULE_ID, &dx);
				BXT_BASE_FW_MODULE_ID, &dx);
	if (ret < 0)
	if (ret < 0) {
		dev_err(ctx->dev,
		dev_err(ctx->dev,
		"Failed to set DSP to D3:core id = %d;Continue reset\n",
		"Failed to set DSP to D3:core id = %d;Continue reset\n",
		core_id);
		core_id);
		/*
		 * In case of D3 failure, re-download the firmware, so set
		 * fw_loaded to false.
		 */
		skl->fw_loaded = false;
	}


	if (core_id == SKL_DSP_CORE0_ID) {
	if (core_id == SKL_DSP_CORE0_ID) {
		/* disable Interrupt */
		/* disable Interrupt */