[PATCH 4.14 066/126] pinctrl/amd: only handle irq if it is pending and unmasked