[PATCH 5.7 048/204] pinctrl: ingenic: Properly detect GPIO direction when configured for IRQ