Commit ed0f19b2 authored by John Bonesio's avatar John Bonesio Committed by Mark Brown

ASoC: MPC5200: Increase the delay time between resets

Reset was failing with the original udelay(50) between the code in
psc_ac97_cold_reset() and the call to psc_ac97_warm_reset(). Through testing
it was found that a delay of 1ms was necessary for the cold_reset code to
consistently complete successfully.
Signed-off-by: default avatarJohn Bonesio <bones@secretlab.ca>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent bca14657
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/of_device.h> #include <linux/of_device.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/delay.h>
#include <sound/pcm.h> #include <sound/pcm.h>
#include <sound/pcm_params.h> #include <sound/pcm_params.h>
...@@ -112,7 +113,7 @@ static void psc_ac97_cold_reset(struct snd_ac97 *ac97) ...@@ -112,7 +113,7 @@ static void psc_ac97_cold_reset(struct snd_ac97 *ac97)
out_8(&regs->op1, MPC52xx_PSC_OP_RES); out_8(&regs->op1, MPC52xx_PSC_OP_RES);
udelay(10); udelay(10);
out_8(&regs->op0, MPC52xx_PSC_OP_RES); out_8(&regs->op0, MPC52xx_PSC_OP_RES);
udelay(50); msleep(1);
psc_ac97_warm_reset(ac97); psc_ac97_warm_reset(ac97);
} }
......
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