[PATCH 3/6] pxa2xx: update stored gpio settings in pxa2xx_mfp_set_lpm()

Dmitry Eremin-Solenikov dbaryshkov at gmail.com
Tue Jan 4 21:05:07 EST 2011


pxa2xx_mfp_set_lpm() reconfigures MFP, but doesn't update gpio_desc cache. Fix that.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
---
 arch/arm/mach-pxa/mfp-pxa2xx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-pxa/mfp-pxa2xx.c b/arch/arm/mach-pxa/mfp-pxa2xx.c
index 1d1419b..7a6e122 100644
--- a/arch/arm/mach-pxa/mfp-pxa2xx.c
+++ b/arch/arm/mach-pxa/mfp-pxa2xx.c
@@ -160,6 +160,7 @@ void pxa2xx_mfp_set_lpm(int mfp, unsigned long lpm)
 
 	c = gpio_desc[gpio].config;
 	c = (c & ~MFP_LPM_STATE_MASK) | lpm;
+	gpio_desc[gpio].config = c;
 	__mfp_config_gpio(gpio, c);
 
 	local_irq_restore(flags);
-- 
1.7.2.3




More information about the linux-arm-kernel mailing list