Chris Packham a74c313aca i2c: mpc: Use atomic read and fix break condition
Maxime points out that the polling code in mpc_i2c_isr should use the
_atomic API because it is called in an irq context and that the
behaviour of the MCF bit is that it is 1 when the byte transfer is
complete. All of this means the original code was effectively a
udelay(100).

Fix this by using readb_poll_timeout_atomic() and removing the negation
of the break condition.

Fixes: 4a8ac5e45cda ("i2c: mpc: Poll for MCF")
Reported-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Tested-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2021-12-10 22:27:30 +01:00
..
2020-09-27 15:14:16 +02:00
2021-04-14 10:20:00 +02:00
2021-01-05 17:30:45 +01:00
2021-08-19 19:18:24 +02:00
2021-08-19 19:18:17 +02:00
2021-04-14 10:20:45 +02:00
2021-10-02 09:32:06 +02:00
2021-06-20 22:40:44 +02:00
2021-08-19 19:18:24 +02:00
2021-04-17 22:00:58 +02:00
2021-09-14 12:22:54 +02:00
2021-08-25 23:04:17 +02:00
2021-10-11 11:45:48 +02:00