diff options
author | Mark Brown <broonie@kernel.org> | 2018-01-05 12:43:27 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-01-05 12:43:27 +0000 |
commit | 7e9a8a878552d58d1bd5e71ca6feadfed99421d2 (patch) | |
tree | 0663080ba5f3dca5ccfb0e686deb889e035180da /sound/soc/intel/common | |
parent | d33f102017b00e3a71b9c8bd81f973f6cce5a102 (diff) | |
parent | d5cc0a1fcbb5ddbef9fdd4c4a978da3254ddbf37 (diff) |
Merge remote-tracking branch 'asoc/topic/intel' into asoc-next
Diffstat (limited to 'sound/soc/intel/common')
-rw-r--r-- | sound/soc/intel/common/sst-dsp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/intel/common/sst-dsp.c b/sound/soc/intel/common/sst-dsp.c index 11c0805393ff..fd82f4b1d4a0 100644 --- a/sound/soc/intel/common/sst-dsp.c +++ b/sound/soc/intel/common/sst-dsp.c @@ -269,7 +269,7 @@ int sst_dsp_register_poll(struct sst_dsp *ctx, u32 offset, u32 mask, */ timeout = jiffies + msecs_to_jiffies(time); - while (((sst_dsp_shim_read_unlocked(ctx, offset) & mask) != target) + while ((((reg = sst_dsp_shim_read_unlocked(ctx, offset)) & mask) != target) && time_before(jiffies, timeout)) { k++; if (k > 10) @@ -278,8 +278,6 @@ int sst_dsp_register_poll(struct sst_dsp *ctx, u32 offset, u32 mask, usleep_range(s, 2*s); } - reg = sst_dsp_shim_read_unlocked(ctx, offset); - if ((reg & mask) == target) { dev_dbg(ctx->dev, "FW Poll Status: reg=%#x %s successful\n", reg, operation); |