[media] gspca - ov534/ov534_9: Fix sccd_read/write errors
authorJean-Francois Moine <moinejf@free.fr>
Mon, 28 May 2012 17:04:07 +0000 (14:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 11 Jun 2012 19:06:50 +0000 (16:06 -0300)
The ov534 bridge is too slow to handle the sensor accesses
requested by fast hosts giving 'sccb_reg_write failed'.
A small delay fixes the problem.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/ov534.c
drivers/media/video/gspca/ov534_9.c

index c16bd1b7914afe7bb88a327c8ffad2f25df344f7..80c81dd6d68b3ce4d6a40566449b89a110ce05a4 100644 (file)
@@ -851,6 +851,7 @@ static int sccb_check_status(struct gspca_dev *gspca_dev)
        int i;
 
        for (i = 0; i < 5; i++) {
+               msleep(10);
                data = ov534_reg_read(gspca_dev, OV534_REG_STATUS);
 
                switch (data) {
index e6601b8860322fe6d1c0eb31b75d58bb23cf6cc0..0120f947e076dc5b1678d1509e9930a1f2ebfb16 100644 (file)
@@ -1008,6 +1008,7 @@ static int sccb_check_status(struct gspca_dev *gspca_dev)
        int i;
 
        for (i = 0; i < 5; i++) {
+               msleep(10);
                data = reg_r(gspca_dev, OV534_REG_STATUS);
 
                switch (data) {