Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO interrupt not working #8

Open
megaloegoman opened this issue Jul 29, 2024 · 0 comments
Open

GPIO interrupt not working #8

megaloegoman opened this issue Jul 29, 2024 · 0 comments

Comments

@megaloegoman
Copy link

megaloegoman commented Jul 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant