From 03a665292520b7d6e6373abb7166d8e9f80b960f Mon Sep 17 00:00:00 2001 From: Oliver Endriss Date: Tue, 25 Nov 2003 19:13:22 +0000 Subject: introduced flag SAA7146_I2C_SHORT_DELAY to speed up I2C access --- linux/drivers/media/common/saa7146_i2c.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/common') diff --git a/linux/drivers/media/common/saa7146_i2c.c b/linux/drivers/media/common/saa7146_i2c.c index 06f56531a..5db9ef621 100644 --- a/linux/drivers/media/common/saa7146_i2c.c +++ b/linux/drivers/media/common/saa7146_i2c.c @@ -301,8 +301,9 @@ int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg msgs[], i goto out; } - if (count > 3) short_delay = 1; - + if ( count > 3 || 0 != (SAA7146_I2C_SHORT_DELAY & dev->ext->flags) ) + short_delay = 1; + do { /* reset the i2c-device if necessary */ err = saa7146_i2c_reset(dev); -- cgit v1.2.3