<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:12pt"><div><span>Is the issue resolved?</span></div><div><br><span></span></div><div><span>This seems to be more of either a device that's buggy or some misunderstanding in understanding the device specs.</span></div><div><span><br></span></div><div><span> I had a similar issue with one of our devices. When I get an interrupt I would do some thing in the device (reading buffers writing some registers and stuff) that should reset the Interrupt pin to high state again. But the hardware had a bug that would not let the Interrupt pin reset, and once I return from the Interrupt it would strike again causing the system to freeze. </span></div><div><br><span></span></div><div>Thanks <br></div><div>Shaji Yusuf</div><div><br><span></span></div><div><br></div> <div style="font-family: tahoma, new york, times, serif; font-size: 12pt;"> <div
style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> siddharth saxena <siddharthsaxena1989@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> anish singh <anish198519851985@gmail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Arun KS <getarunks@gmail.com>; Sarbojit Ganguly <unixman.linuxboy@gmail.com>; kernelnewbies@kernelnewbies.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, June 14, 2012 2:35 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Continuous Interrupt Problem<br> </font> </div> <br>
<div id="yiv1710388756">Initialized in Probe :<br><br>if (device->irq) {<br> ret = request_irq(device->irq, ts_int_handler,<br> IRQF_TRIGGER_LOW, DRIVER_NAME, device);<br> if (ret) {<br> pr_err("unable to register touch irq.(%s)\r\n",<br>
device->input_dev->name);<br> goto err_request_irq;<br> }<br> }<br><br><br><br>The pin by default has to be initialized to Active Low.<br><br><br><br><br><div class="yiv1710388756gmail_quote">On Thu, Jun 14, 2012 at 2:24 PM, anish singh <span dir="ltr"><<a rel="nofollow" ymailto="mailto:anish198519851985@gmail.com" target="_blank" href="mailto:anish198519851985@gmail.com">anish198519851985@gmail.com</a>></span> wrote:<br>
<blockquote class="yiv1710388756gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv1710388756im">On Thu, Jun 14, 2012 at 2:11 PM, siddharth saxena<br>
<<a rel="nofollow" ymailto="mailto:siddharthsaxena1989@gmail.com" target="_blank" href="mailto:siddharthsaxena1989@gmail.com">siddharthsaxena1989@gmail.com</a>> wrote:<br>
> Hi Arun<br>
><br>
> I tried changing the flag to IRQF_TRIGGER_HIGH but then device is behaving<br>
> abnormally(Hangs and is dead after some time).<br>
> Flooding interrupts still observed. Problem not solved.<br>
><br>
> I want to know, are we supposed to change interrupt pin status or it is done<br>
> automatically when we return IRQ_HANDLED.<br>
</div>why don't you paste the code for your probe routine where you are<br>
calling request_irq.<br>
Are you using threaded irq?It would be difficult to diagnose the<br>
problem without looking<br>
at your TSP manual and your code to find out the problem.<br>
<div class="yiv1710388756HOEnZb"><div class="yiv1710388756h5">><br>
><br>
><br>
><br>
> On Thu, Jun 14, 2012 at 12:21 PM, Sarbojit Ganguly<br>
> <<a rel="nofollow" ymailto="mailto:unixman.linuxboy@gmail.com" target="_blank" href="mailto:unixman.linuxboy@gmail.com">unixman.linuxboy@gmail.com</a>> wrote:<br>
>><br>
>> Hi Arun,<br>
>><br>
>> While I agree to your pointers but he is facing the problem of<br>
>> "interrupt floods" even before he touches.<br>
>> IMHO the culprit could be the flag.<br>
>><br>
>> On 14 June 2012 12:01, Arun KS <<a rel="nofollow" ymailto="mailto:getarunks@gmail.com" target="_blank" href="mailto:getarunks@gmail.com">getarunks@gmail.com</a>> wrote:<br>
>> > Hello Siddharth,<br>
>> ><br>
>> > On Thu, Jun 14, 2012 at 10:34 AM, siddharth saxena<br>
>> > <<a rel="nofollow" ymailto="mailto:siddharthsaxena1989@gmail.com" target="_blank" href="mailto:siddharthsaxena1989@gmail.com">siddharthsaxena1989@gmail.com</a>> wrote:<br>
>> >> Hi all<br>
>> >><br>
>> >> I need help with an issue.<br>
>> >> I have written a touch driver for a device and used the flag<br>
>> >> IRQF_TRIGGER_LOW to request irq.<br>
>> >> Now, when I boot the device, the touch interrupts are coming already<br>
>> >> without<br>
>> >> touching the screen.<br>
>> >> Continuous interrupts are occurring without any touch.<br>
>> ><br>
>> > Probably the default state of the gpio pin(which you configured as<br>
>> > irq) is low. Check your HW schematic.<br>
>> ><br>
>> > TSC should have interrupt polarity(Active High/Low), which you have to<br>
>> > choose depending on your schematic while initiallizing the TSC.<br>
>> > Also different modes like assert interrupt when finger moving, when<br>
>> > finger touch, or assert periodically.<br>
>> ><br>
>> > Hope these pointer will help you.<br>
>> ><br>
>> > Thanks,<br>
>> > Arun<br>
>> ><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Regards<br>
>> >> Siddharth Saxena<br>
>> >><br>
>> >><br>
>> >> _______________________________________________<br>
>> >> Kernelnewbies mailing list<br>
>> >> <a rel="nofollow" ymailto="mailto:Kernelnewbies@kernelnewbies.org" target="_blank" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
>> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies<br>
>> >><br>
>> ><br>
>> > _______________________________________________<br>
>> > Kernelnewbies mailing list<br>
>> > <a rel="nofollow" ymailto="mailto:Kernelnewbies@kernelnewbies.org" target="_blank" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
>> > <a rel="nofollow" target="_blank" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Regards,<br>
>> Sarbojit<br>
><br>
><br>
><br>
><br>
> --<br>
> Regards<br>
> Siddharth Saxena<br>
><br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a rel="nofollow" ymailto="mailto:Kernelnewbies@kernelnewbies.org" target="_blank" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a rel="nofollow" target="_blank" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards<div>Siddharth Saxena</div><br>
</div><br>_______________________________________________<br>Kernelnewbies mailing list<br><a ymailto="mailto:Kernelnewbies@kernelnewbies.org" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br><a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br><br><br> </div> </div> </div></body></html>