From: Rabin Vincent Date: Thu, 6 May 2010 09:43:55 +0000 (+0100) Subject: ARM: 6101/1: nomadik-gpio: don't enable in set_type X-Git-Tag: v2.6.35-rc1~503^2~4^6~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a852d8060e1bb3a5e621caaebea86c43cf4a62d;p=pandora-kernel.git ARM: 6101/1: nomadik-gpio: don't enable in set_type On this peripheral, setting the trigger type enables the interrupt, and the current set_type() implementation unconditionally enables the interrupt, even if it is called when the interrupt is disabled. Fix set_type() to: - if the interrupt is disabled, defer the actual trigger setting to when it is unmasked - if the interrupt is enabled, change the type immediately by clearing the old type and then re-enabling with the new type. Acked-by: Alessandro Rubini Acked-by: Linus Walleij Signed-off-by: Rabin Vincent Signed-off-by: Russell King --- Reading git-diff-tree failed