Messages in this thread | | | Date | Sun, 28 Oct 2018 22:07:55 +0000 | From | Wolfram Sang <> | Subject | Re: [PATCH 1/3] i2c: uniphier-f: make driver robust against concurrency |
| |
On Tue, Oct 16, 2018 at 12:01:47PM +0900, Masahiro Yamada wrote: > This is unlikely to happen, but it is possible for a CPU to enter > the interrupt handler just after wait_for_completion_timeout() has > expired. If this happens, the hardware is accessed from multiple > contexts concurrently. > > Disable the IRQ after wait_for_completion_timeout(), and do nothing > from the handler when the IRQ is disabled. > > Fixes: 6a62974b667f ("i2c: uniphier_f: add UniPhier FIFO-builtin I2C driver") > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Applied to for-next, thanks!
[unhandled content-type:application/pgp-signature] | |