Try request_irq(gpio_to_irq(96), isr, SA_INTERRUPT, "slave",NULL);

Then check /proc/interrupt.
________________________________
From: davinci-linux-open-source-boun...@linux.davincidsp.com 
[mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of 
Prabhaharan R-TLS,Chennai
Sent: Tuesday, February 24, 2009 11:26 AM
To: davinci-linux-open-source
Subject: Davinci DM355 - GPIO Bank 6 Interrupt
Importance: High

Hello All,

I am using DM355 GPIO Bank 6 interrupt for one of the peripheral. We are using 
the Montavista TI Davinci Linux 2.6.10 version.
I was trying to register an interrupt (IRQ = 60 for GPIO Bank 6 and the GPIO 
used is 96) with Linux. It gave the invalid arguments. Then I did debugging to 
check which argument is causing an issue. I identified the irq_desc[irq].valid 
flag is not set and I did the hard coding for setting this flag to 1 for IRQ 
60.  Then the request_irq API was returning 0. This means that the interrupt is 
registered.

request_irq(IRQ_DM355_GPIOBNK6, isr, SA_INTERRUPT, "slave",NULL);

Also, I have configured the following for GPIO 96. The peripheral that we are 
using will give falling edge interrupt.

1. To configure a GPIO interrupt to occur only on falling edges of the GPIO 
signal:
* Write a logic 1 to the associated bit in SET_FAL_TRIG
* Write a logic 1 to the associated bit in CLR_RIS_TRIG

2. BINTEN for Bank 6.

3. Also the PINMUX register were taken care properly.

4. Even, the direction register are set for this GPIO 96.

Even though I did all the above settings, the ISR is not getting triggered. I 
don't know the reason for this issue.

Moreover, I measured the IRQ line using CRO. There is a change in the IRQ line. 
It goes from high to low.

Is there something, that the Linux is not processing the interrupt for IRQ 60?

If anyone faced similar issue, please provide your valuable comments.

Thanks a lot in advance.

Regards,
Prabhaharan.R
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to