Commit 1fa96f3f authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown

ASoC: wm_adsp: Use usleep_range for short delay

Replace the 1ms msleep in wm_adsp2_ena with a usleep_range, as per
normal guidance on delay functions. Also tighten up the delay a little
as 1ms was quite generous.
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5ca7e170
...@@ -2237,7 +2237,7 @@ static int wm_adsp2_ena(struct wm_adsp *dsp) ...@@ -2237,7 +2237,7 @@ static int wm_adsp2_ena(struct wm_adsp *dsp)
if (val & ADSP2_RAM_RDY) if (val & ADSP2_RAM_RDY)
break; break;
msleep(1); usleep_range(250, 500);
} }
if (!(val & ADSP2_RAM_RDY)) { if (!(val & ADSP2_RAM_RDY)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment