[PATCH 5.4 076/152] pinctrl: ingenic: Properly detect GPIO direction when configured for IRQ