[linux-dvb] sleeping in saa7146_i2c_writeout

Jeremy Hall jhall at maoz.com
Fri Oct 28 02:37:29 CEST 2005


Hello,

I'm looking in saa7146_i2c.c near line 207

do not poll for i2c status before upload is complete

timeout = jiffies + HZ/100 + 1;

and it thinks that's 10 miliseconds.  That's fine because it looks like it 
won't actually wait 10 ms.

and what does this code mean?

if ((++trial < 20) && short_delay)
udelay(10);
else
msleep(1);

when switching voltage, I'd rather udelay(10) instead of sleeping 1ms. 
(that's 10 microseconds, right?)

Is it acceptable to raise this from 20 to 40 or something larger?

I'm finding that on an RT-capable kernel is making trial equal 20 and thus 
sleeping 1ms.

_J



More information about the linux-dvb mailing list