From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Sundar R IYER <sundar.iyer@stericsson.com>
Cc: "linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
Kwangwoo LEE <kwangwoo.lee@stericsson.com>,
Linus WALLEIJ <linus.walleij@stericsson.com>
Subject: Re: [PATCH v5 1/2] input: add support for Nomadik SKE keypad controller
Date: Wed, 15 Sep 2010 02:00:46 -0700 [thread overview]
Message-ID: <20100915090046.GC28348@core.coreip.homeip.net> (raw)
In-Reply-To: <33A307AF30D7BF4F811B1568FE7A9B18043784FA97@EXDCVYMBSTM006.EQ1STM.local>
On Wed, Sep 15, 2010 at 10:49:03AM +0200, Sundar R IYER wrote:
> Hi Dmitry,
>
> >-----Original Message-----
> >From: Dmitry Torokhov [mailto:dmitry.torokhov@gmail.com]
>
> >> +
> >> + /* disable auto scan interrupt; mask the interrupt generated */
> >> + ske_keypad_set_bits(keypad, SKE_IMSC, ~SKE_KPIMA, 0x0);
> >> + ske_keypad_set_bits(keypad, SKE_ICR, 0x0, SKE_KPICA);
> >> +
> >> + mod_timer(&keypad->timer, jiffies + 2);
> >> +
> >
> >I expected you would do "return IRQ_HANDLED;" here so that hardware
> >polling is done exclusively in timer handler.
> >
> What I thought is: enable the timer by default; so that in case we find out the
> ASRs aren't stable, the reporting automatically will get deferred to the timer. In
> a normal case, when the ASRs are stable, the reporting gets done by the IRQ handler;
> in case they aren't, the reporting will get done by the timers. Is this not correct?
My concern was is that first time around ASRs are not stable; you defer
to timer. Then you get 2nd interrupt and ASRs are stable now so both IRQ
and timer trying to work the hardware.
If you have IRQ kick the timer and bail only timer (and only 1 instance)
accesses the hardware.
--
Dmitry
next prev parent reply other threads:[~2010-09-15 9:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-15 7:24 [PATCH v5 1/2] input: add support for Nomadik SKE keypad controller Sundar Iyer
2010-09-15 7:33 ` Trilok Soni
2010-09-15 7:52 ` Dmitry Torokhov
2010-09-15 8:57 ` Trilok Soni
2010-09-15 7:55 ` Dmitry Torokhov
2010-09-15 8:49 ` Sundar R IYER
2010-09-15 9:00 ` Dmitry Torokhov [this message]
2010-09-15 9:02 ` Sundar R IYER
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100915090046.GC28348@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=kwangwoo.lee@stericsson.com \
--cc=linus.walleij@stericsson.com \
--cc=linux-input@vger.kernel.org \
--cc=sundar.iyer@stericsson.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).