From: Hans de Goede Date: Fri, 21 Dec 2012 14:17:42 +0000 (-0300) Subject: [media] gspca_sonixj: Add a small delay after i2c_w1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2bffebc1e6dcd49e5e92b348c9a1c6bcea8c2f5e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] gspca_sonixj: Add a small delay after i2c_w1 We already have the same delay in i2c_w8, but it was missing from i2c_w1, adding this delay fixes the Microsoft VX-3000 camera often (but not always) streaming video data with a very green-ish tint. Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/gspca/sonixj.c b/drivers/media/usb/gspca/sonixj.c index 5a86047b846f..36307a9028a9 100644 --- a/drivers/media/usb/gspca/sonixj.c +++ b/drivers/media/usb/gspca/sonixj.c @@ -1550,6 +1550,7 @@ static void i2c_w1(struct gspca_dev *gspca_dev, u8 reg, u8 val) 0, gspca_dev->usb_buf, 8, 500); + msleep(2); if (ret < 0) { pr_err("i2c_w1 err %d\n", ret); gspca_dev->usb_err = ret;