summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2012-05-28 14:04:07 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-06-11 16:06:50 -0300
commitf19ed98111d508bafc1aa31478f2c612cbdc26b5 (patch)
tree9e355689b6f443beb3126320f774c56a4e94fb10 /drivers
parentaf05ef01e9cde84620c6855a8d8ab9c8a1db9009 (diff)
downloadop-kernel-dev-f19ed98111d508bafc1aa31478f2c612cbdc26b5.zip
op-kernel-dev-f19ed98111d508bafc1aa31478f2c612cbdc26b5.tar.gz
[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')
-rw-r--r--drivers/media/video/gspca/ov534.c1
-rw-r--r--drivers/media/video/gspca/ov534_9.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c
index c16bd1b..80c81dd 100644
--- a/drivers/media/video/gspca/ov534.c
+++ b/drivers/media/video/gspca/ov534.c
@@ -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) {
diff --git a/drivers/media/video/gspca/ov534_9.c b/drivers/media/video/gspca/ov534_9.c
index e6601b8..0120f94 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) {
OpenPOWER on IntegriCloud