diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-10-16 12:01:49 +0900 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-10-29 18:53:37 +0000 |
commit | eaba68785c2d24ebf1f0d46c24e11b79cc2f94c7 (patch) | |
tree | 934fcac325c5fcac927b0c5b1ded7965a02a859f /drivers/mailbox | |
parent | 39226aaa85f002d695e3cafade3309e12ffdaecd (diff) |
i2c: uniphier-f: fix race condition when IRQ is cleared
The current IRQ handler clears all the IRQ status bits when it bails
out. This is dangerous because it might clear away the status bits
that have just been set while processing the current handler. If this
happens, the IRQ event for the latest transfer is lost forever.
The IRQ status bits must be cleared *before* the next transfer is
kicked.
Fixes: 6a62974b667f ("i2c: uniphier_f: add UniPhier FIFO-builtin I2C driver")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions