[ARM] pxa: fix issue of muxed GPIO irq_chip functions touching non-muxed GPIOs
authorEric Miao <eric.miao@marvell.com>
Tue, 21 Apr 2009 06:39:07 +0000 (14:39 +0800)
committerEric Miao <eric.miao@marvell.com>
Mon, 27 Apr 2009 03:45:16 +0000 (11:45 +0800)
commita8f6faebaf5b3f0f56b7c12a4f99d97c56938b37
treec6368843d0f54638dd911f8230f7cee1e731f117
parent6ae85d6db4871d8dbcb5cc0e9056f97f1ca07061
[ARM] pxa: fix issue of muxed GPIO irq_chip functions touching non-muxed GPIOs

pxa_gpio_irq_type() and pxa_unmask_muxed_gpio() will touch non-muxed GPIOs
(0 and 1 on PXA2xx/PXA3xx) bits in GRERx and GFERx, which is incorrect.
Actually, only those bits should get updated if the corresponding bits are
set in c->irq_mask as well. Fix this by updating only those relevant bits.

Reported-and-tested-by: Daniel Ribeiro <drwyrm@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/plat-pxa/gpio.c