Skip to content
Commit f70893d0 authored by Alok Chauhan's avatar Alok Chauhan Committed by Wolfram Sang
Browse files

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: default avatarAlok Chauhan <alokc@nvidia.com>
Acked-by: default avatarStephen Warren <swarren@wwwdotorg.org>

[wsa: Reworded the commit msg and code comment a bit]

Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent 6c557cfe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment