]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: cpcap: Use ack_invert interrupts
authorTony Lindgren <tony@atomide.com>
Tue, 4 Apr 2017 03:15:55 +0000 (20:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Jun 2017 05:06:17 +0000 (07:06 +0200)
commitd9eb87dbb26cf3b7efe1c8bd676a05c8e66b846e
treee04e8866211705526011eb10f9f9ff6d5808a758
parentbce0fb907151d41e46a0f7c7ff799586015354a2
mfd: cpcap: Use ack_invert interrupts

commit 5a88d4120029601a0868e20774382d312952d3b5 upstream.

We should use ack_invert as the int_read_and_clear() in the Motorola
kernel tree does "ireg_val & ~mreg_val" before writing to the mask
register.

Fixes: 56e1d40d3bea ("mfd: cpcap: Add minimal support")
Tested-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/motorola-cpcap.c