]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: rcar: revoke START request early
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 19 Nov 2015 15:56:49 +0000 (16:56 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 30 Nov 2015 13:22:33 +0000 (14:22 +0100)
commitf7da2df37d704db355333ac451a0dd7615c6e626
tree64570f24c3874390169e28cbddffde637042c0b8
parentbf486e7b6cc31d14dadb83de64c130730bc63be0
i2c: rcar: revoke START request early

If we don't clear START generation as soon as possible, it may cause
another message to be generated, e.g. when receiving NACK in address
phase. To keep the race window as small as possible, we clear it right
at the beginning of the interrupt. We don't need any checks since we
always want to stop START and STOP generation on the next occasion after
we started it.

This patch improves the situation but sadly does not completely fix it.
It is still to be researched if we can do better given this HW design.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c