bm16ton / ft2232-mpsse-i2c-spi-kern-drivers

linux kernel drivers for ft2232 spi and i2c
28 stars 9 forks source link

GPIO interrupt not working #8

Open megaloegoman opened 1 month ago

megaloegoman commented 1 month ago

I'm loading the module like this

insmod ft232h-intf.ko bind232h=1 irqpoll=1

But then I cannot export the "irq" pin which is the only GPIO that supports interrupts ( poll() ) according to the comments, "enabled poll based irq gpio pin AD6".

echo 667 > /sys/class/gpio/export # 664 is the base for me, IRQ pin is the 4th after base bash: echo: write error: Device or resource busy

Loading the driver with irqpoll=0, the pin does get exported. Here's the dmesg comparison with irqpoll=1 (left) and without. Any ideas?

dmesg_compare_irqpoll.zip

Also, there's a buffer overflow because GPIO_irqNumber = 152. I had to make this change, but it doesn't influence this issue. fix_buffer_overflow.patch