With the gpio-dwapb driver, the first rising edge interrupt event gets lost when the interrupt type is edge both. This is caused by a kernel bug. The following mainline kernel fix is missing, and should be backported to WRL 4.12 kernel: commit edadced2bc7012108b05b47c0649c257ad28f03c Author: Xiaoguang Chen <[xgchenshy@gmail.com|mailto:xgchenshy@gmail.com]> Date: Fri Jun 2 07:27:15 2017 +0800 gpio: dwapb: fix missing first irq for edgeboth irq type Here is a link to the commit: [https://gitlab.freedesktop.org/panfrost/linux/commit/edadced2bc7012108b05b47c0649c257ad28f03c]