From: Angelo Dureghello <angelo.dureghello@timesys.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH] input: keyboard-matrix: add a function to reset input states
Date: Thu, 7 Oct 2021 14:17:59 +0200 [thread overview]
Message-ID: <CALJHbkBH1osQzufgjPE9dpKM=dV5BgVT-nBxoJiq3c7bmdLXqw@mail.gmail.com> (raw)
In-Reply-To: <YV4BKqLSVhMuxOeP@google.com>
Hi Dimitry,
On Wed, Oct 6, 2021 at 10:03 PM Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
>
> Hi Angelo,
>
> On Sun, Sep 26, 2021 at 05:18:47PM +0200, Angelo Dureghello wrote:
> > In some cases, at open(), when matrix_keypad_start() schedules
> > matrix_keypad_scan(), some events may be fired, but they can't be
> > grabbed from the event queue by evtest later on, since this
> > condition causes a continuous event triggered.
>
> I am not quite sure what you mean by "continuous event triggered". Could
> you please explain in more detail?
>
sure, mainly, without this fix, by using evtest, i get
continuously the same key event (last key of the keypad),
even if evtest is supposed to remove the event from the queue,
the event is always there. Then, pressing a key of the matrix
keypad, things get fixed, i get the key press event, then events
stop, queue is now empty, no other events are detected.
Honestly couldn't go much deeper, but the behavior described above
is originated from calling:
matrix_keypad_start() ->
scheduled_delayed_work() ->
matrix_keypad_scan(), that detects some initial key pressed state
and fires an event, and interrupts are not enabled still.
Cleaning key states before enabling them solved the issue (i am on
a sun8i H2+).
>
> Thanks.
>
YW, available for any test in case.
Regards,
angelo
>
> --
> Dmitry
--
Angelo Dureghello
Timesys
e. angelo.dureghello@timesys.com
prev parent reply other threads:[~2021-10-07 12:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-26 15:18 [PATCH] input: keyboard-matrix: add a function to reset input states Angelo Dureghello
2021-10-06 20:03 ` Dmitry Torokhov
2021-10-07 12:17 ` Angelo Dureghello [this message]
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='CALJHbkBH1osQzufgjPE9dpKM=dV5BgVT-nBxoJiq3c7bmdLXqw@mail.gmail.com' \
--to=angelo.dureghello@timesys.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
/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).