Skip to content

Commit

Permalink
ASoC: Intel: fix error code cnl_set_dsp_D0()
Browse files Browse the repository at this point in the history
Return -ETIMEDOUT if the dsp boot times out instead of returning
success.

Fixes: cb6a552 ("ASoC: Intel: cnl: Add sst library functions for cnl platform")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/X9NEvCzuN+IObnTN@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Dan Carpenter authored and broonie committed Dec 14, 2020
1 parent 84de089 commit f373a81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/intel/skylake/cnl-sst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f373a81

Please sign in to comment.