All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sundar R IYER <sundar.iyer@stericsson.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Linus Walleij <linus.ml.walleij@gmail.com>
Cc: Trilok Soni <tsoni@codeaurora.org>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	STEricsson_nomadik_linux <STEricsson_nomadik_linux@list.st.com>
Subject: RE: [PATCH v3 1/1] input: add support for Nomadik SKE keypad controller
Date: Thu, 9 Sep 2010 06:22:19 +0200	[thread overview]
Message-ID: <33A307AF30D7BF4F811B1568FE7A9B181C856805@EXDCVYMBSTM006.EQ1STM.local> (raw)
In-Reply-To: <20100908154601.GF4190@core.coreip.homeip.net>

Hi Dmitry,

>-----Original Message-----
>From: Dmitry Torokhov [mailto:dmitry.torokhov@gmail.com]
>>
>> +static irqreturn_t ske_keypad_irq(int irq, void *dev_id)
>> (...)
>> +       /*
>> +        * if KPASON is not ready, we cannot read data registers
>> +        * so wait for a debounce period; if still not settled,
>> +        * we fire a timer and exit the IRQ
>> +        */
>> +       while ((readl(keypad->reg_base + SKE_CR) & SKE_KPASON) && timeout--)
>> +               cpu_relax();
>>
>> Active polling. Surely you want this to be preemptible? Thus ->
>> threaded handler.
>>
>
>Actually I'd like that form of active polling not be there at all.
>

Hmm. Could you please help me out on how I can proceed with the 
following two HW constraints:

1. KPASON polling needs to be waited in case of a multi key press so that
the keypad registers can stabilize. This is what the TRM states.

2. If I move enabling the interrupts to the timer snippet, I end up breaking multi-key
detection.

Regards,
Sundar

  reply	other threads:[~2010-09-09  4:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-06 12:48 [PATCH v3 1/1] input: add support for Nomadik SKE keypad controller Sundar Iyer
2010-09-06 15:07 ` Datta, Shubhrajyoti
2010-09-06 15:16   ` Sundar R IYER
2010-09-06 15:41     ` Datta, Shubhrajyoti
2010-09-06 15:43       ` Sundar R IYER
2010-09-07  6:37 ` Dmitry Torokhov
2010-09-07  6:49   ` Sundar R IYER
2010-09-07 14:01 ` Trilok Soni
2010-09-08 12:55   ` Sundar R IYER
2010-09-08 12:58     ` Trilok Soni
2010-09-08 14:19       ` Linus Walleij
2010-09-08 15:46         ` Dmitry Torokhov
2010-09-09  4:22           ` Sundar R IYER [this message]
2010-09-13  7:31             ` 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=33A307AF30D7BF4F811B1568FE7A9B181C856805@EXDCVYMBSTM006.EQ1STM.local \
    --to=sundar.iyer@stericsson.com \
    --cc=STEricsson_nomadik_linux@list.st.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linus.ml.walleij@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=tsoni@codeaurora.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 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.