From: Peter Rusko <rusko.peter@prolan.hu>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Yong Zhang <yong.zhang0@gmail.com>,
w.sang@pengutronix.de, linux-input@vger.kernel.org
Subject: Re: [PATCH] matrix_keypad: convert to threaded IRQs
Date: Wed, 4 Apr 2012 09:40:46 +0200 [thread overview]
Message-ID: <4F7BFAFE.4020809@prolan.hu> (raw)
In-Reply-To: <20120403163706.GA24832@core.coreip.homeip.net>
On 2012-04-03 18:37, Dmitry Torokhov wrote:
> On Tue, Apr 03, 2012 at 10:10:00AM +0200, Peter Rusko wrote:
>> Tested on Ka-Ro TX28 SOC
>
> Needs justification; plus this is not how debounce works - you need to
> postpone scan until IRQ line settles, not simply wait so many
> milliseconds.
What is the difference there? The previous driver has the same effect,
it used a delayed work to wait:
if (unlikely(keypad->scan_pending || keypad->stopped))
goto out;
disable_row_irqs(keypad);
keypad->scan_pending = true;
schedule_delayed_work(&keypad->work,
msecs_to_jiffies(keypad->pdata->debounce_ms));
Are you saying that I should reschedule the scan every time an interrupt
arrives (before the 'goto out' line) and decrease timeout?
>
> I think what you really need is request_any_context_irq().
In that case, I'll have to get back to delayed work.
Peter
next prev parent reply other threads:[~2012-04-04 7:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 8:10 [PATCH] matrix_keypad: convert to threaded IRQs Peter Rusko
2012-04-03 16:37 ` Dmitry Torokhov
2012-04-04 7:40 ` Peter Rusko [this message]
2012-04-04 8:10 ` Dmitry Torokhov
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=4F7BFAFE.4020809@prolan.hu \
--to=rusko.peter@prolan.hu \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=w.sang@pengutronix.de \
--cc=yong.zhang0@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.