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="gmail_quote">On Thu, Jun 14, 2012 at 2:24 PM, anish singh <span dir="ltr"><<a href="mailto:anish198519851985@gmail.com" target="_blank">anish198519851985@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Jun 14, 2012 at 2:11 PM, siddharth saxena<br>
<<a 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="HOEnZb"><div class="h5">><br>
><br>
><br>
><br>
> On Thu, Jun 14, 2012 at 12:21 PM, Sarbojit Ganguly<br>
> <<a 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 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 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 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>
>> > _______________________________________________<br>
>> > Kernelnewbies mailing list<br>
>> > <a 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>
>><br>
>> --<br>
>> Regards,<br>
>> Sarbojit<br>
><br>
><br>
><br>
><br>
> --<br>
> Regards<br>
> Siddharth Saxena<br>
><br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a 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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards<div>Siddharth Saxena</div><br>