diff options
author | Paul Cercueil <[email protected]> | 2020-06-22 23:45:48 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2020-07-07 14:21:02 +0200 |
commit | 84e7a946da71f678affacea301f6d5cb4d9784e8 (patch) | |
tree | d461c29858a3fa60183e6449201b6ed865db5bf8 /scripts/gdb/linux/tasks.py | |
parent | 1c95348ba327fe8621d3680890c2341523d3524a (diff) |
pinctrl: ingenic: Properly detect GPIO direction when configured for IRQ
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 <[email protected]>
Signed-off-by: Paul Cercueil <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions