summaryrefslogtreecommitdiff
path: root/drivers/media/video/gspca/ov534_9.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2012-05-28 21:04:07 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-06-11 23:06:50 +0400
commitf19ed98111d508bafc1aa31478f2c612cbdc26b5 (patch)
tree9e355689b6f443beb3126320f774c56a4e94fb10 /drivers/media/video/gspca/ov534_9.c
parentaf05ef01e9cde84620c6855a8d8ab9c8a1db9009 (diff)
downloadlinux-f19ed98111d508bafc1aa31478f2c612cbdc26b5.tar.xz
[media] gspca - ov534/ov534_9: Fix sccd_read/write errors
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>
Diffstat (limited to 'drivers/media/video/gspca/ov534_9.c')
-rw-r--r--drivers/media/video/gspca/ov534_9.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/ov534_9.c b/drivers/media/video/gspca/ov534_9.c
index e6601b886032..0120f947e076 100644
--- a/drivers/media/video/gspca/ov534_9.c
+++ b/drivers/media/video/gspca/ov534_9.c
@@ -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) {