From: Jean-François Moine Date: Mon, 26 Jul 2010 09:50:31 +0000 (-0300) Subject: V4L/DVB: gspca - sq930x: Bad init sequence for sensor mt9v111 X-Git-Tag: firefly_0821_release~9833^2~774^2~94 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4663117bbaa27a3fdaff9422f09c64e04ce82694;p=firefly-linux-kernel-4.4.55.git V4L/DVB: gspca - sq930x: Bad init sequence for sensor mt9v111 The start_1 exchange must be done by (reg, val) * 5 and not 8. Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/sq930x.c b/drivers/media/video/gspca/sq930x.c index c9f367a5dbd1..8032190cd12a 100644 --- a/drivers/media/video/gspca/sq930x.c +++ b/drivers/media/video/gspca/sq930x.c @@ -1111,7 +1111,7 @@ static int sd_start(struct gspca_dev *gspca_dev) ARRAY_SIZE(mt9v111_init_2)); ucbus_write(gspca_dev, mt9v111_start_1, ARRAY_SIZE(mt9v111_start_1), - 8); + 5); i2c_write(sd, mt9v111_init_3, ARRAY_SIZE(mt9v111_init_3)); i2c_write(sd, mt9v111_init_4,