summaryrefslogtreecommitdiff
path: root/kernel/gcov/gcov.h
diff options
context:
space:
mode:
authorMohsan Habibi <mohsan@motorola.com>2014-07-09 19:57:53 -0400
committerMohsan Habibi <mohsan@motorola.com>2014-07-15 20:46:19 +0000
commit7cb82f0204f4607988c1e3c88069978eb71fbb95 (patch)
tree845e60da9590b5101708077720252a1028851ede /kernel/gcov/gcov.h
parent54f749c6467379305aaa11ebf9274629aaa3d6e7 (diff)
downloadolio-linux-3.10-7cb82f0204f4607988c1e3c88069978eb71fbb95.tar.xz
olio-linux-3.10-7cb82f0204f4607988c1e3c88069978eb71fbb95.zip
IKXCLOCK-2689 i2c: omap: reduce timeout and don't wait after transfer complete
Such a long timeout of 1s for a transfer to finish or wait for the bus to become free causes an i2c client to become blocked for at least 2s, if the attached slave is misbehaving. This timeout can be reduced to 500ms; 500ms is plenty long enough for a single i2c transfer to finish even in clock stretching cases. Also, after an i2c transfer is complete, there's no benefit in waiting for the bus to become ready, since the check will be done again just before the next transfer. Finally, in case the bus never gets freed, let's return an error immediately after clearing the bus, regardless if the recovery was successful. This will allow the i2c client to try the transfer again on its own terms, instead of having the i2c driver attempt to proceed with the transfer immediately after the recovery. Change-Id: I6bc950948bd012aae4c3029b9c00603354a938fa Signed-off-by: Mohsan Habibi <mohsan@motorola.com>
Diffstat (limited to 'kernel/gcov/gcov.h')
0 files changed, 0 insertions, 0 deletions