[linux-dvb] mdelay(10) ves1820_writereg()
lists at kenneth.aafloy.net
Wed Mar 23 23:15:11 CET 2005
On Wednesday 23 March 2005 22:57, Johannes Stezenbach wrote:
> Tony Glader wrote:
> > Is there some good reason why there is mdelay(10) in ves1820_writereg():
> That is a good question.
> > static int ves1820_writereg(struct ves1820_state *state, u8 reg, u8 data)
> > msleep(10);
> > Doesn't it slow down lot of i2c communication?
> Yes, but maybe that's the intention (bad hardware).
> Does it work for you without the sleep?
It feels somewhat large tho, don't it Johannes?
If some hardware would require a delay there it would be because of
a reset or some such (with special time constraints) was not handeled
very well. A verification of the driver from it's datasheet is required!
More information about the linux-dvb