]> Pileus Git - ~andy/linux/commit
[media] gspca_konica: Fix init sequence
authorHans de Goede <hdegoede@redhat.com>
Sat, 30 Jun 2012 12:03:21 +0000 (09:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Jul 2012 21:40:19 +0000 (18:40 -0300)
commite163609ef77f065dbf3936dcb8f5ffcf6d19b35c
tree6326d963d1bb49f6b193c9ca14c7db1e8132c034
parent8bb58964bc139d5ff5285f84aa302977d221754d
[media] gspca_konica: Fix init sequence

The konica needs a freaking large time (circa 6.5 seconds) to "boot", and
does not want to be bothered while doing so, so sleep for 6 seconds, and
then query its status register at 100ms intervals until it becomes ready.

This removes the "reg_w err: -32" messages shown in dmesg whenever a
konica cam gets initialized, and also fixes the camera not working when
an app tries to use it directly after it has been plugged in and after
a suspend/resume cycle.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/konica.c