Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 969f7510 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Mark Brown
Browse files

ASoC: rt5660: use msleep() for long delay

ulseep_range() uses hrtimers and provides no advantage over msleep()
for larger delays. For this large delay msleep() is preferable.

Link: http://lkml.org/lkml/2017/1/11/377


Fixes: commit 2b26dd4c ("ASoC: rt5660: add rt5660 codec driver")
Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4281fcc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1152,7 +1152,7 @@ static int rt5660_resume(struct snd_soc_codec *codec)
	struct rt5660_priv *rt5660 = snd_soc_codec_get_drvdata(codec);
	struct rt5660_priv *rt5660 = snd_soc_codec_get_drvdata(codec);


	if (rt5660->pdata.poweroff_codec_in_suspend)
	if (rt5660->pdata.poweroff_codec_in_suspend)
		usleep_range(350000, 400000);
		msleep(350);


	regcache_cache_only(rt5660->regmap, false);
	regcache_cache_only(rt5660->regmap, false);
	regcache_sync(rt5660->regmap);
	regcache_sync(rt5660->regmap);