]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: octeon: Increase retry default and use fixed timeout value
authorJan Glauber <jglauber@cavium.com>
Mon, 11 Apr 2016 15:28:32 +0000 (17:28 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 13 Apr 2016 08:30:46 +0000 (10:30 +0200)
commita035d71b1205f880d85752869053b14813366108
tree9fa6216f66474d3cd0cc313df21b14e4130d7d99
parent497fbe24987bd24ee271c67c212ec681995188b6
i2c: octeon: Increase retry default and use fixed timeout value

Convert the adapter timeout to 2 ms independently of depending on CONFIG_HZ.
CONFIG_HZ is 100 for MIPS Cavium-Octeon so the timeout value is not changed.

Also set retries to 5 to improve robustness.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-octeon.c