[Solved] Ar71xx gpio_to_irq error

Dear All,

i`m try to use gpio irq in my driver, but when i exe gpio_to_irq() , it just retrun -6. those code can work in openwrt trunk.

btw: when i use echo 11 > /sys/class/gpip/export, there`s no edge in gpio11, why ?
Regards,

r

i saw there`s no gpio irq function for ath79 gpio driver, and no ath79 gpio irq patch

why..is there something wrong with gpio irq driver? why lede removed this patch?

Regards,

y

Hi, I made a backport for 17.01 version

https://patchwork.ozlabs.org/patch/722108/

but the patch was rejected, the IRQ driver for GPIOs will be available once the kernel 4.9 is adopted in this target.

Currently, if you want to have IRQs available at GPIOs, you must compile your own firmware using the driver backport

Great!

thanks