From: Alok Chauhan Date: Mon, 2 Apr 2012 05:53:02 +0000 (+0530) Subject: i2c: tegra: Add delay before resetting the controller after NACK X-Git-Tag: v3.4-rc6~21^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f70893d08338b9cab8008d2e30404ce58930a513;p=pandora-kernel.git i2c: tegra: Add delay before resetting the controller after NACK NACK interrupt is generated before I2C controller generates the STOP condition on bus. Because of this reset of controller is happening before I2C controller could complete STOP condition. So wait for some time before resetting the controller so that STOP condition has delivered properly on bus. Added delay of 2 clock period before resetting the controller in case of NACK error. Signed-off-by: Alok Chauhan Acked-by: Stephen Warren [wsa: Reworded the commit msg and code comment a bit] Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed