2014/1/2 Hauke Mehrtens <hauke@xxxxxxxxxx>: > With this patch we prevent the irq from being fired when it is > registered. The Hardware fires an IRQ when input signal XOR polarity > AND gpio mask is 1. Now we are setting polarity to a vlaue so that is > is 0 when we register it. > > In addition we also set the irq mask register to 0 when the irq handler > is initialized, so all gpio irqs are masked and there will be no > unexpected irq. Sorry for this problem. Since the generated event was button release one, I didn't notice this problem. Glad you were more careful when testing it. Thanks for the patch!