Re: Fix matrix keypad does not response with matrix_keypad driver in specific condition.

2018-02-02 Thread Dmitry Torokhov
On Fri, Feb 02, 2018 at 09:43:20PM +0200, Andy Shevchenko wrote: > +Cc: Dmitry > > On Fri, Feb 2, 2018 at 6:05 PM, 张波 wrote: > > > > in matrix_keypad.c, the function disable_row_irqs() may be called by > > matrix_keypad_interrupt() or matrix_keypad_stop(), there is race condition > > to disble

Re: Fix matrix keypad does not response with matrix_keypad driver in specific condition.

2018-02-02 Thread Andy Shevchenko
+Cc: Dmitry On Fri, Feb 2, 2018 at 6:05 PM, 张波 wrote: > > in matrix_keypad.c, the function disable_row_irqs() may be called by > matrix_keypad_interrupt() or matrix_keypad_stop(), there is race condition to > disble irqs. > > > If while matrix_keypad_stop() is calling, and the keypad interrupt

Fix matrix keypad does not response with matrix_keypad driver in specific condition.

2018-02-02 Thread 张波
in matrix_keypad.c, the function disable_row_irqs() may be called by matrix_keypad_interrupt() or matrix_keypad_stop(), there is race condition to disble irqs. If while matrix_keypad_stop() is calling, and the keypad interrupt is triggered, disable_row_irqs() is called by matrix_keypad_interr