[PATCH 5.8 054/232] pinctrl: ingenic: Properly detect GPIO direction when configured for IRQ