Re: [alsa-devel] [PATCH] Modify mpc5200 AC97 driver to use V9 of spin_event_timeout()
From: Jon Smirl <hidden>
Date: 2009-05-27 00:44:47
Also in:
alsa-devel
From: Jon Smirl <hidden>
Date: 2009-05-27 00:44:47
Also in:
alsa-devel
On Tue, May 26, 2009 at 8:38 PM, Timur Tabi [off-list ref] wrote:
On Tue, May 26, 2009 at 7:25 PM, Jon Smirl [off-list ref] wrote:quoted
- =A0 =A0 =A0 spin_event_timeout(0, 10, 0, rc); + =A0 =A0 =A0 spin_event_timeout(0, 10, 0); =A0 =A0 =A0 =A0out_8(®s->op0, MPC52xx_PSC_OP_RES); - =A0 =A0 =A0 spin_event_timeout(0, 50, 0, rc); + =A0 =A0 =A0 spin_event_timeout(0, 50, 0);Jon, I'm still hoping you'll explain why you're not using udelay() here.
Because Grant didn't want me doing udelay(50) just to delay things in order to give the AC97 controller time to initialize. Your function lets me loop on cpu_relax() for 50us. I have to delay 50us because ALSA tries to access the hardware immediately after the function returns.
-- Timur Tabi Linux kernel developer at Freescale
--=20 Jon Smirl jonsmirl@gmail.com