ASoC: Intel: fix error code cnl_set_dsp_D0()
commit5.4-rM2-2.2.x-imx-squashedf373a811fd
upstream. Return -ETIMEDOUT if the dsp boot times out instead of returning success. Fixes:cb6a552846
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
parent
2392a54de8
commit
55a1020043
|
@ -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",
|
"dsp boot timeout, status=%#x error=%#x\n",
|
||||||
sst_dsp_shim_read(ctx, CNL_ADSP_FW_STATUS),
|
sst_dsp_shim_read(ctx, CNL_ADSP_FW_STATUS),
|
||||||
sst_dsp_shim_read(ctx, CNL_ADSP_ERROR_CODE));
|
sst_dsp_shim_read(ctx, CNL_ADSP_ERROR_CODE));
|
||||||
|
ret = -ETIMEDOUT;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue