From mboxrd@z Thu Jan 1 00:00:00 1970 From: getarunks@gmail.com (Arun KS) Date: Thu, 14 Jun 2012 14:32:10 +0530 Subject: Continuous Interrupt Problem In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hello Siddharth, On Thu, Jun 14, 2012 at 2:11 PM, siddharth saxena wrote: > Hi Arun > > I tried changing the flag to IRQF_TRIGGER_HIGH but then device is behaving > abnormally(Hangs and is dead after some time). > Flooding interrupts still observed. Problem not solved. > > I want to know, are we supposed to change interrupt pin status or it is done > automatically when we return IRQ_HANDLED. What is the default state of your irq gpio pin? Is it pulled high or low? What is the interrupt asset conditon from your TSC(Active high/low or Edge triggered)? Thanks, Arun > > > > > On Thu, Jun 14, 2012 at 12:21 PM, Sarbojit Ganguly > wrote: >> >> Hi Arun, >> >> While I agree to your pointers but he is facing the problem of >> "interrupt floods" even before he touches. >> IMHO the culprit could be the flag. >> >> On 14 June 2012 12:01, Arun KS wrote: >> > Hello Siddharth, >> > >> > On Thu, Jun 14, 2012 at 10:34 AM, siddharth saxena >> > wrote: >> >> Hi all >> >> >> >> I need help with an issue. >> >> I have written a touch driver for a device and used the flag >> >> IRQF_TRIGGER_LOW to request irq. >> >> Now, when I boot the device, the touch interrupts are coming already >> >> without >> >> touching the screen. >> >> Continuous interrupts are occurring without any touch. >> > >> > Probably the default state of the gpio pin(which you configured as >> > irq) is low. Check your HW schematic. >> > >> > TSC should have interrupt polarity(Active High/Low), which you have to >> > choose depending on your schematic while initiallizing the TSC. >> > Also different modes like assert interrupt when finger moving, when >> > finger touch, or assert periodically. >> > >> > Hope these pointer will help you. >> > >> > Thanks, >> > Arun >> > >> >> >> >> >> >> >> >> -- >> >> Regards >> >> Siddharth Saxena >> >> >> >> >> >> _______________________________________________ >> >> Kernelnewbies mailing list >> >> Kernelnewbies at kernelnewbies.org >> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >> >> >> > >> > _______________________________________________ >> > Kernelnewbies mailing list >> > Kernelnewbies at kernelnewbies.org >> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >> >> >> >> -- >> Regards, >> Sarbojit > > > > > -- > Regards > Siddharth Saxena >