From: Jonathan Corbet Date: Fri, 17 Aug 2007 04:02:33 +0000 (-0300) Subject: V4L/DVB (6027): Get rid of an ill-behaved msleep in i2c write X-Git-Tag: v2.6.23-rc4~103^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d77444aca298b43a88086be446f943cd0442ef7;p=pandora-kernel.git V4L/DVB (6027): Get rid of an ill-behaved msleep in i2c write Configuring the OLPC camera requires something over 150 register writes. Unfortunately, querying the CAFE i2c controller too soon after a write causes the hardware to flake. The problem had been "solved" with an msleep() call, but, between the number of registers and how msleep() behaves, that resulted in a 3-second delay on camera initialization. Instead, we hand-code a wait for the completion interrupt which avoids reading the status registers. Signed-off-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed