From: Doug Anderson Date: Mon, 22 Dec 2014 18:47:29 +0000 (-0800) Subject: pinctrl: rockchip: Avoid losing interrupts when supporting both edges X-Git-Tag: fixes-v4.0-rc1~270^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53b1bfc76df23230bbe32fd5879ff4927f04c53a;p=pandora-kernel.git pinctrl: rockchip: Avoid losing interrupts when supporting both edges I was seeing cases where I was losing interrupts when inserting and removing SD cards. Sometimes the card would get "stuck" in the inserted state. I believe that the problem was related to the code to handle the case where we needed both rising and falling edges. This code would disable the interrupt as the polarity was switched. If an interrupt came at the wrong time it could be lost. We'll match what the gpio-dwapb.c driver does upstream and change the interrupt polarity without disabling things. Signed-off-by: Doug Anderson Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner Signed-off-by: Linus Walleij --- Reading git-diff-tree failed