]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: octeon: Add workaround for broken irqs on CN3860
authorDavid Daney <david.daney@cavium.com>
Wed, 27 Apr 2016 09:44:39 +0000 (11:44 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 27 Apr 2016 16:54:43 +0000 (18:54 +0200)
commitfe600cf6424ff45712a175351b11c3ff1206ff2c
treeccc14ec85af3ef94b2c3c55bcb3fa1951965d3b1
parentdd485951e79a6dcbf18ba1612ad91d45e4cfa9a7
i2c: octeon: Add workaround for broken irqs on CN3860

CN3860 does not interrupt the CPU when the i2c status changes. If
we get a timeout, and see the status has in fact changed, we know we
have this problem, and drop back to polling.

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