]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: designware-baytrail: baytrail_i2c_acquire() might sleep
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 10 Feb 2015 17:06:10 +0000 (19:06 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 7 Mar 2015 00:08:26 +0000 (01:08 +0100)
commitbca4e6a5a210bbefd8ef3a4fa2839f550e6dfc6e
treef6e0d87de4c2532d3bab76885038a13159a7c844
parent879d845a3d051ddb3fb21e086abbdbe9861f84d4
i2c: designware-baytrail: baytrail_i2c_acquire() might sleep

This patch marks baytrail_i2c_acquire() that it might sleep. Also it chages
while-loop to do-while and, though it is matter of taste, gives a chance to
check one more time before report a timeout.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-baytrail.c