On Tue, May 26, 2009 at 8:38 PM, Timur Tabi <ti...@freescale.com> wrote:
> On Tue, May 26, 2009 at 7:25 PM, Jon Smirl <jonsm...@gmail.com> wrote:
>
>> -       spin_event_timeout(0, 10, 0, rc);
>> +       spin_event_timeout(0, 10, 0);
>>        out_8(&regs->op0, MPC52xx_PSC_OP_RES);
>> -       spin_event_timeout(0, 50, 0, rc);
>> +       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
>



-- 
Jon Smirl
jonsm...@gmail.com
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to