From: Ondrej Zary Date: Sun, 3 Nov 2013 00:09:07 +0000 (-0300) Subject: [media] gspca-stk1135: Add delay after configuring clock X-Git-Tag: v3.13-rc4~25^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fd1fb7af5c19ccfc1dba66ba7ffaf0fb3be6ee1;p=profile%2Fivi%2Fkernel-x86-ivi.git [media] gspca-stk1135: Add delay after configuring clock Add a small delay at the end of configure_clock() to allow sensor to initialize. This is needed by Asus VX2S laptop webcam to detect sensor type properly (the already-supported MT9M112). Signed-off-by: Ondrej Zary Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/gspca/stk1135.c b/drivers/media/usb/gspca/stk1135.c index 1fc80af..48234c9 100644 --- a/drivers/media/usb/gspca/stk1135.c +++ b/drivers/media/usb/gspca/stk1135.c @@ -361,6 +361,9 @@ static void stk1135_configure_clock(struct gspca_dev *gspca_dev) /* set serial interface clock divider (30MHz/0x1f*16+2) = 60240 kHz) */ reg_w(gspca_dev, STK1135_REG_SICTL + 2, 0x1f); + + /* wait a while for sensor to catch up */ + udelay(1000); } static void stk1135_camera_disable(struct gspca_dev *gspca_dev)