On Wed, Aug 19, 2020 at 03:49:53PM +0200, Paul Cercueil wrote: > The PAT1 register contains information about the IRQ type (edge/level) > for input GPIOs with IRQ enabled, and the direction for non-IRQ GPIOs. > So it makes sense to read it only if the GPIO has no interrupt > configured, otherwise input GPIOs configured for level IRQs are > misdetected as output GPIOs. > > Fixes: ebd6651418b6 ("pinctrl: ingenic: Implement .get_direction for GPIO chips") > Reported-by: João Henrique <johnnyonflame@xxxxxxxxxxx> > Signed-off-by: Paul Cercueil <paul@xxxxxxxxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx > Link: https://lore.kernel.org/r/20200622214548.265417-2-paul@xxxxxxxxxxxxxxx > Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> > --- > > Notes: > Original git commit ID: 84e7a946da71f678affacea301f6d5cb4d9784e8 Now queued up, thanks! greg k-h