linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Arve Hjønnevåg" <arve@android.com>
To: Trilok Soni <soni.trilok@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>, Greg KH <greg@kroah.com>,
	kernel list <linux-kernel@vger.kernel.org>,
	swetland@google.com, linux-input@vger.kernel.org
Subject: Re: HTC Dream for staging: add support for input on GPIO pins
Date: Mon, 10 Aug 2009 15:26:36 -0700	[thread overview]
Message-ID: <d6200be20908101526m31a422feid09c89ab5675220c@mail.gmail.com> (raw)
In-Reply-To: <5d5443650908100031t5240daa4h76ef2a7863cc4403@mail.gmail.com>

On Mon, Aug 10, 2009 at 12:31 AM, Trilok Soni<soni.trilok@gmail.com> wrote:
> Hi Pavel,
>
> On Sun, Aug 9, 2009 at 3:14 AM, Pavel Machek<pavel@ucw.cz> wrote:
>> On Sat 2009-08-08 22:12:46, Trilok Soni wrote:
...
>>> I don't see any importance of gpio_matrix.c when we already have
>>> generic gpio matrix driver mainlined. I would suggest to remove those
>>> bits from this patch. I have added linux-input ML.
>>
>> Well, I'm trying for staging merge at this point. Reasons why
>> gpio_matrix is there are:
>>
>> 1) it is non-trivial to remove
>>
>> 2) it has some features mainline lacks
>>
>> 3) HTC Dream actually works with it
>>
>> (and 4) I'd like to submit code as Arve wrote it, then transform/clean
>> it up in staging).
>>
>> Of course, relevant features will need to be extracted from
>> gpio_matrix and merged at the right places, and that needs to happen
>> before move from staging/, but I'd like to have working keyboard in
>> the meantime.
>
> gpio_matrix in mainline should work with HTC G1 with few proper
> platform data and input name eventhough ghost key clearance code is
> not yet in mainline driver.

It would also be missing the end-call and volume keys.

>
> I know you want HTC dream to work through staging but I would prefer
> that such drivers should be discussed and reviewed on
> linux-input/linux-kernel ML and not just dumped in staging.

As I mentioned when the matrix keypad driver was posted, we moved away
from having separate matrix and gpio input drivers since the the
hardware we use mix both types in the same logical keyboard. I did not
see any discussion about alternative ways to do this.

The current version of our driver (though this code does not appear to
be included this path) also supports creating multiple input devices
from a single set of inputs. This is needed on several new devices
where the trackball button is in keypad matrix and it is needed if you
want to report the same keycode from multiple keys (e.g. dream
external menu key and menu key in main keyboard).

-- 
Arve Hjønnevåg
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2009-08-10 22:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090808130315.GA12930@elf.ucw.cz>
2009-08-08 16:42 ` HTC Dream for staging: add support for input on GPIO pins Trilok Soni
2009-08-08 21:44   ` Pavel Machek
2009-08-10  7:31     ` Trilok Soni
2009-08-09 13:01       ` Pavel Machek
2009-08-10 22:26       ` Arve Hjønnevåg [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=d6200be20908101526m31a422feid09c89ab5675220c@mail.gmail.com \
    --to=arve@android.com \
    --cc=greg@kroah.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=soni.trilok@gmail.com \
    --cc=swetland@google.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).