Re: [PATCH] Input: matrix_keypad - force switch rows to input mode

From: Dmitry Torokhov
Date: Thu Nov 03 2022 - 16:42:18 EST


On Wed, Nov 02, 2022 at 07:57:47PM +0300, Siarhei Volkau wrote:
> Some Pin/GPIO controllers can't get current GPIO status when interrupt
> mode is set. Specifically Ingenic's JZ4755 always returns status at the
> moment of interrupt.
>
> The patch tries to fix that by forcibly setting pin mode to GPIO input
> prior to reading actual row status. enable_row_irqs seems to set
> interrupt mode back as it should be.
>
> Signed-off-by: Siarhei Volkau <lis8215@xxxxxxxxx>

Applied, thank you.

--
Dmitry