26 May
2009
26 May
'09
2:09 p.m.
Jon Smirl wrote:
+static void psc_ac97_warm_reset(struct snd_ac97 *ac97) +{
- int rc;
- struct mpc52xx_psc __iomem *regs = psc_dma->psc_regs;
- out_be32(®s->sicr, psc_dma->sicr | MPC52xx_PSC_SICR_AWR);
- spin_event_timeout(0, 3, 0, rc);
I still think you should use udelay() here. spin_event_timeout(<constant>) will just reduce to a udelay() call anyway. In addition, there's no "event" that you're waiting for.
--
Timur Tabi
Linux kernel developer at Freescale