Re: [PATCH v2] gpiolib: fix incorrect IRQ requesting of an active-low lineevent

2019-07-22 Thread Bartosz Golaszewski
pon., 8 lip 2019 o 07:23 Michael Wu napisał(a): > > When a pin is active-low, logical trigger edge should be inverted to match > the same interrupt opportunity. > > For example, a button pushed triggers falling edge in ACTIVE_HIGH case; in > ACTIVE_LOW case, the button pushed triggers rising edge.

Re: [PATCH v2] gpiolib: fix incorrect IRQ requesting of an active-low lineevent

2019-07-08 Thread Bartosz Golaszewski
pon., 8 lip 2019 o 07:23 Michael Wu napisał(a): > > When a pin is active-low, logical trigger edge should be inverted to match > the same interrupt opportunity. > > For example, a button pushed triggers falling edge in ACTIVE_HIGH case; in > ACTIVE_LOW case, the button pushed triggers rising edge.

[PATCH v2] gpiolib: fix incorrect IRQ requesting of an active-low lineevent

2019-07-07 Thread Michael Wu
When a pin is active-low, logical trigger edge should be inverted to match the same interrupt opportunity. For example, a button pushed triggers falling edge in ACTIVE_HIGH case; in ACTIVE_LOW case, the button pushed triggers rising edge. For user space the IRQ requesting doesn't need to do any mo