diff options
| author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-05-06 10:36:38 +0100 |
|---|---|---|
| committer | Sasha Levin <sashal@kernel.org> | 2020-06-29 20:07:48 -0400 |
| commit | bc601c4642fc69d36439d67c0237719b6a3b84d9 (patch) | |
| tree | 7942216a85a4313599a6a2655ebe643785fd7a11 /include/linux/stackprotector.h | |
| parent | f876da3fd44c12e5c63a7a27bc11fbeb3b9cdf25 (diff) | |
i2c: pxa: clear all master action bits in i2c_pxa_stop_message()
[ Upstream commit e81c979f4e071d516aa27cf5a0c3939da00dc1ca ]
If we timeout during a message transfer, the control register may
contain bits that cause an action to be set. Read-modify-writing the
register leaving these bits set may trigger the hardware to attempt
one of these actions unintentionally.
Always clear these bits when cleaning up after a message or after
a timeout.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
