diff options
author | 2019-02-14 09:51:31 +0100 | |
---|---|---|
committer | 2019-02-14 17:55:30 +0100 | |
commit | 2dc9834688ae3ba057d46e60525a11ec146ae3df (patch) | |
tree | 71578e34cb22aa59ce1da25fb91d01fd9b9814af /include/linux | |
parent | i2c: ocores: stop transfer on timeout (diff) | |
download | wireguard-linux-2dc9834688ae3ba057d46e60525a11ec146ae3df.tar.xz wireguard-linux-2dc9834688ae3ba057d46e60525a11ec146ae3df.zip |
i2c: ocores: do not handle IRQ if IF is not set
If the Interrupt Flag (IF) is not set, we should not handle the IRQ:
- the line can be shared with other devices
- it can be a spurious interrupt
To avoid reading twice the status register, the ocores_process() function
expects it to be read by the caller.
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions