forked from Minki/linux
[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>
This commit is contained in:
parent
af05ef01e9
commit
f19ed98111
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user