Skip to content

Commit

Permalink
[media] gspca - ov534/ov534_9: Fix sccd_read/write errors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Jun 11, 2012
1 parent af05ef0 commit f19ed98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/video/gspca/ov534.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions drivers/media/video/gspca/ov534_9.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f19ed98

Please sign in to comment.