From: Alexander Stein Date: Mon, 20 Feb 2012 08:14:16 +0000 (+0100) Subject: i2c-eg20t: Rework pch_i2c_wait_for_bus_idle to reduce wait time X-Git-Tag: v3.4-rc1~113^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0836c80901565e8549e17cbad6933ab7e48ef6b2;p=pandora-kernel.git i2c-eg20t: Rework pch_i2c_wait_for_bus_idle to reduce wait time If you insert several i2c transfers, the driver might start the next one while the STOP bit of the previous transfer is still on the bus, marking the bus as busy. pch_i2c_wait_for_bus_idle does an msleep(20) delaying the next transfer by >=20ms. Reduce wait time by actively waiting 5 us once, then using usleep_range. Signed-off-by: Alexander Stein Acked-by: Tomoya MORINAGA Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed