diff options
Diffstat (limited to 'sound/soc/intel/common/sst-dsp.c')
-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, | |||
269 | */ | 269 | */ |
270 | 270 | ||
271 | timeout = jiffies + msecs_to_jiffies(time); | 271 | timeout = jiffies + msecs_to_jiffies(time); |
272 | while (((sst_dsp_shim_read_unlocked(ctx, offset) & mask) != target) | 272 | while ((((reg = sst_dsp_shim_read_unlocked(ctx, offset)) & mask) != target) |
273 | && time_before(jiffies, timeout)) { | 273 | && time_before(jiffies, timeout)) { |
274 | k++; | 274 | k++; |
275 | if (k > 10) | 275 | if (k > 10) |
@@ -278,8 +278,6 @@ int sst_dsp_register_poll(struct sst_dsp *ctx, u32 offset, u32 mask, | |||
278 | usleep_range(s, 2*s); | 278 | usleep_range(s, 2*s); |
279 | } | 279 | } |
280 | 280 | ||
281 | reg = sst_dsp_shim_read_unlocked(ctx, offset); | ||
282 | |||
283 | if ((reg & mask) == target) { | 281 | if ((reg & mask) == target) { |
284 | dev_dbg(ctx->dev, "FW Poll Status: reg=%#x %s successful\n", | 282 | dev_dbg(ctx->dev, "FW Poll Status: reg=%#x %s successful\n", |
285 | reg, operation); | 283 | reg, operation); |