Thread (9 messages) 9 messages, 3 authors, 2009-05-27

Re: [alsa-devel] [PATCH] Modify mpc5200 AC97 driver to use V9 of spin_event_timeout()

From: Jon Smirl <hidden>
Date: 2009-05-27 01:01:03
Also in: alsa-devel

On Tue, May 26, 2009 at 8:53 PM, Timur Tabi [off-list ref] wrote:
On Tue, May 26, 2009 at 7:44 PM, Jon Smirl [off-list ref] wrote:
quoted
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.
But udelay() calls HMT_low(), which is like cpu_relax().
Then why did you need to make your routine that calls cpu_relax()?

I don't know what goes on in the guts of HMT_low() and cpu_relax(),
when you guys decide which one I should use let me know and I can
adjust the patch.

The hardware needs a minimum 50us pause. It doesn't matter if the
pause is more than that. If the CPU has something to keep it busy for
a few milliseconds that's fine.
--
Timur Tabi
Linux kernel developer at Freescale
-- 
Jon Smirl
jonsmirl@gmail.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help