]> git.baikalelectronics.ru Git - kernel.git/commit
[media] m5mols: Extend the busy wait helper
authorHeungJun Kim <riverful.kim@samsung.com>
Mon, 12 Dec 2011 11:04:03 +0000 (08:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 30 Dec 2011 16:33:09 +0000 (14:33 -0200)
commitda6363545d1a7a5c6cb85244d4aae6c04c5da0ee
tree1cd45c589f0e7b5824fc92748cda4e3abb141a63
parentac57e3b82aa538a063745138c5f6db8f4c6c0174
[media] m5mols: Extend the busy wait helper

Make m5mols_busy_wait function jiffies based rather than relying
on some fixed number of I2C read iterations while busy waiting
for the device to execute a request. With fixed number of iterations
we may be getting different wait times, depending on the I2C speed.

In some conditions we have to wait even if the I2C communications
fails, in those cases M5MOLS_I2C_RDY_WAIT_MASK should be passed
as the mask argument to m5mols_busy_wait().

Signed-off-by: HeungJun Kim <riverful.kim@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/m5mols/m5mols.h
drivers/media/video/m5mols/m5mols_core.c