aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2012-08-06 21:47:06 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-09 19:41:03 -0400
commitbaede40c4daf2157413ae218946d6fe3b3ed1292 (patch)
tree97e4ccbe61bbae9ed87ee0010ac67807286243b7
parent8ff63de690d74bec848caab64a86bd53c797365c (diff)
[media] au0828: tune retry interval for i2c interaction
Adjust the retry timeout and number of retries to speed up xc5000 firmware download. With this change it goes from 4.2 seconds to 2.9. The net time waited is pretty much the same, but we just poll more often. Tested at 250 KHz as well as 30 KHz. Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/au0828/au0828-i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/au0828/au0828-i2c.c b/drivers/media/video/au0828/au0828-i2c.c
index d4545550e0dd..3bc76df5a47a 100644
--- a/drivers/media/video/au0828/au0828-i2c.c
+++ b/drivers/media/video/au0828/au0828-i2c.c
@@ -33,8 +33,8 @@ static int i2c_scan;
33module_param(i2c_scan, int, 0444); 33module_param(i2c_scan, int, 0444);
34MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); 34MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time");
35 35
36#define I2C_WAIT_DELAY 512 36#define I2C_WAIT_DELAY 25
37#define I2C_WAIT_RETRY 64 37#define I2C_WAIT_RETRY 1000
38 38
39static inline int i2c_slave_did_write_ack(struct i2c_adapter *i2c_adap) 39static inline int i2c_slave_did_write_ack(struct i2c_adapter *i2c_adap)
40{ 40{