This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GPIO interrupt - problem with kernel APIs

Guru 20755 points

Hello,

I am having some difficulties in triggering interrupt on DM8148 with kernel APIs.

I am trying to trigger interrupt in gpio 42.

1. all function return correcly.

2. with sysfs I have success, but fails when using kernel APIs.

3. I have attached my code (for both sysfs and kernel APIs)

If anyone have any example, can you please share ?

https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/shared.7z

I have also noticed that on calling request_irq the interrupt register (interrupt for GPIO1 bank) , 0x4804C034, value changes from 0 to 0x400 (seems like pin 42 interrupt is enabled). Do I need to set some other registers too ?

I really have no more clues, please help.

Thank you,

Ran