]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: ocores: fix polling mode workaround on FU540-C000 SoC
authorSagar Shrikant Kadam <sagar.kadam@sifive.com>
Wed, 21 Oct 2020 14:50:14 +0000 (07:50 -0700)
committerWolfram Sang <wsa@kernel.org>
Tue, 3 Nov 2020 21:10:48 +0000 (22:10 +0100)
commitf89411e4bd743ff8c8b94cc3344a7d655ce2e1d2
tree7f16a6642e59377e91bfb57d3a6e859e1922e629
parent519a5773175d6a396610a51542710ed2577a8fcb
i2c: ocores: fix polling mode workaround on FU540-C000 SoC

The FU540-C000 has a broken IRQ and support was added earlier
so that it will operate in polling mode, but seems to work only
in case interrupts property is missing from the i2c0 dt-node.
This should not be the case and the driver should handle polling
mode with the interrupt property present in i2c0 node of the
device tree.
So check if it's the FU540-C000 soc and enable polling mode master
xfers, as the IRQ for this chip is broken.

Fixes commit 74e98b1b20a3 ("i2c: ocores: add polling mode workaround
for Sifive FU540-C000 SoC")

Signed-off-by: Sagar Shrikant Kadam <sagar.kadam@sifive.com>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-ocores.c