Skip to contentSkip to conversation

ASoC: Intel: fix error code cnl_set_dsp_D0()

PATCH In review Dan Carpenter 3 participants 3 messages Dec 11, 2020 – Dec 14, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Intel: fix error code cnl_set_dsp_D0()

Return -ETIMEDOUT if the dsp boot times out instead of returning success.

Fixes cb6a55284629 ("ASoC: Intel: cnl: Add sst library functions for cnl platform")

---
Not tested.

 sound/soc/intel/skylake/cnl-sst.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/intel/skylake/cnl-sst.c +1 -0
index fcd8dff27ae8..1275c149acc0 100644
@@ -224,6 +224,7 @@ static int cnl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id)
 				"dsp boot timeout, status=%#x error=%#x\n",
 				sst_dsp_shim_read(ctx, CNL_ADSP_FW_STATUS),
 				sst_dsp_shim_read(ctx, CNL_ADSP_ERROR_CODE));
+			ret = -ETIMEDOUT;
 			goto err;
 		}
 	} else {
Signature · 1 line
2.29.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Dan Carpenter

Return -ETIMEDOUT if the dsp boot times out instead of returning success.

Fixes cb6a55284629 ("ASoC: Intel: cnl: Add sst library functions for cnl platform")

---
Not tested.

  sound/soc/intel/skylake/cnl-sst.c | 1 +
  1 file changed, 1 insertion(+)
sound/soc/intel/skylake/cnl-sst.c +0 -0
index fcd8dff27ae8..1275c149acc0 100644

sound/soc/intel/skylake/cnl-sst.c static int cnl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) · line 230

Quoted 7 lines
sound/soc/intel/skylake/cnl-sst.c +1 -0
@@ -224,6 +224,7 @@ static int cnl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id)
  				"dsp boot timeout, status=%#x error=%#x\n",
  				sst_dsp_shim_read(ctx, CNL_ADSP_FW_STATUS),
  				sst_dsp_shim_read(ctx, CNL_ADSP_ERROR_CODE));
+			ret = -ETIMEDOUT;
  			goto err;
  		}
  	} else {

Thanks for the patch, Dan.

maintainer
#2 lore raw
In reply to Dan Carpenter
Quoted 2 lines · Dan Carpenter

Return -ETIMEDOUT if the dsp boot times out instead of returning success.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: Intel: fix error code cnl_set_dsp_D0()

      commit: f373a811fd9a69fc8bafb9bcb41d2cfa36c62665

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark