From: Pavel Machek <pavel@ucw.cz>
To: Arve Hj?nnev?g <arve@android.com>
Cc: gregkh@suse.de, greg@kroah.com, swetland@google.com,
linux-input@vger.kernel.org
Subject: Re: patch staging-htc-dream-touchscreen-driver-for-staging.patch added to gregkh-2.6 tree
Date: Tue, 28 Jul 2009 00:55:46 +0200 [thread overview]
Message-ID: <20090727225545.GC7142@elf.ucw.cz> (raw)
In-Reply-To: <d6200be20907271545l4edc4480v22f6dec4cd3d5dc9@mail.gmail.com>
On Mon 2009-07-27 15:45:48, Arve Hj?nnev?g wrote:
> On Mon, Jul 27, 2009 at 9:06 AM, <gregkh@suse.de> wrote:
> ...
> > This is original version from Arve, fixed only to compile; I do have
> > cleaner version, but I broken something inside, and this will preserve
> > authorship better. I originally tried to push the driver directly to
> > input/touchscreen, but the driver has some issues with interrupt
> > handling that are more difficult to fix than I expected at first.
> >
>
> While it would be nice to use the threaded interrupt support, I don't
> see why that change cannot be postponed until the the threaded
> interrupt code supports this class of devices where the interrupt
> needs to be masked before the thread can run.
That's up to linux-input people, I guess. But...
>From the discussion, it seems that the driver has more issues. I have
quite long list.
1) either it needs to switch to threaded interrupt supports, or all
the races need to be fixed.
[Comments I remember here is:]
(
> > + ts->input_dev->name, ts->use_irq ? "interrupt" :
"polling");
> > +
> > + return 0;
> > +
> > + err_input_register_device_failed:
> > + input_free_device(ts->input_dev);
> > +
>
> Don't see canceling timer nor shutting off WQ here. Also, maybe
> implement open() and close() so we don't reschedule WQ while polling?_
)
2) it uses non-standard multitouch support. Either multitouch needs to
be disabled for merge, or it needs to switch to standard config.
3) poll mode should probably be removed.
4) minor stuff, like properly filling identification fields
(vendor/device/product) etc.
Yes, ideally it should be 3 or 4 patches and it is out of staging and
in the kernel proper. But as I already got patches for people trying
to help with cleaning, I believe staging is right place for
it.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2009-07-27 22:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-20 10:53 HTC Dream: touchscreen driver for staging Pavel Machek
[not found] ` <1248710770577@kroah.org>
[not found] ` <d6200be20907271545l4edc4480v22f6dec4cd3d5dc9@mail.gmail.com>
2009-07-27 22:55 ` Pavel Machek [this message]
2009-07-28 0:29 ` patch staging-htc-dream-touchscreen-driver-for-staging.patch added to gregkh-2.6 tree Arve Hjønnevåg
2009-07-28 11:14 ` Pavel Machek
2009-07-29 2:51 ` Arve Hjønnevåg
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=20090727225545.GC7142@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=arve@android.com \
--cc=greg@kroah.com \
--cc=gregkh@suse.de \
--cc=linux-input@vger.kernel.org \
--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 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.