]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/mmp: Only touch the PJ4 IRQ & FIQ bits on enable/disable
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 28 Jan 2019 15:59:35 +0000 (16:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:12 +0000 (14:04 -0700)
commit73bcb7558363384f243c3111198c82813ff0c4d7
treeeaa8114866a1a749844ffbbf749b1ed50fd681e3
parent61d0518dd102d99948b3552c48f0bca88e2d6276
irqchip/mmp: Only touch the PJ4 IRQ & FIQ bits on enable/disable

[ Upstream commit 2380a22b60ce6f995eac806e69c66e397b59d045 ]

Resetting bit 4 disables the interrupt delivery to the "secure
processor" core. This breaks the keyboard on a OLPC XO 1.75 laptop,
where the firmware running on the "secure processor" bit-bangs the
PS/2 protocol over the GPIO lines.

It is not clear what the rest of the bits are and Marvell was unhelpful
when asked for documentation. Aside from the SP bit, there are probably
priority bits.

Leaving the unknown bits as the firmware set them up seems to be a wiser
course of action compared to just turning them off.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Pavel Machek <pavel@ucw.cz>
[maz: fixed-up subject and commit message]
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-mmp.c