From: HeungJun Kim Date: Mon, 12 Dec 2011 11:04:03 +0000 (-0300) Subject: [media] m5mols: Extend the busy wait helper X-Git-Tag: v3.3-rc1~48^2~399 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=575d6252a715c599964ec6ec06428e6362c0633e;p=pandora-kernel.git [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 Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed