public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: dtor_core@ameritech.net
Cc: Pavel Machek <pavel@suse.cz>,
	rpurdie@rpsys.net, lenz@cs.wisc.edu,
	kernel list <linux-kernel@vger.kernel.org>,
	vojtech@suse.cz
Subject: Re: [patch 1/2] Touchscreen support for sharp sl-5500
Date: Mon, 25 Jul 2005 17:57:38 +0100	[thread overview]
Message-ID: <20050725175738.E7629@flint.arm.linux.org.uk> (raw)
In-Reply-To: <d120d500050725094776984a0f@mail.gmail.com>; from dmitry.torokhov@gmail.com on Mon, Jul 25, 2005 at 11:47:25AM -0500

On Mon, Jul 25, 2005 at 11:47:25AM -0500, Dmitry Torokhov wrote:
> On 7/25/05, Russell King <rmk+lkml@arm.linux.org.uk> wrote:
> > If you look at _my_ version, you'll notice that it doesn't use the
> > class interface stuff.  A previous version of it did, and this seems
> > to be what the collie stuff is based upon.
> 
> I was only commenting on something that was posted on LKML for
> inclusion into input subtree that I am interested in. I don't track
> ARM development that closely. Where can we see your version, please?

See earlier in this thread, 24th July.

> > What I suggest is that the collie folk need to update their driver
> > to my version so that we don't have two different forks of the same
> > driver in existance.  Then we can start discussing whether things
> > should be using kthreads or not.
> 
> Do you have any reason why, generally speaking, threads should not be
> used? They seem to clean up code in drivers quite a bit.

It depends what the reasoning is behind them.  The touchscreen driver
is threaded because it wants to collect touschreen samples independently
of the availability of a user thread.  Moreover, obtaining ADC samples
needs a sleeping context since it may take a while to complete.

However, putting all UCB interrupts into a thread does not make sense
to me - if we allow UCB interrupts to sleep, it allows one UCB interrupt
to be processed at the exclusion of the others.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

  reply	other threads:[~2005-07-25 16:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-22 18:01 [patch 1/2] Touchscreen support for sharp sl-5500 Pavel Machek
2005-07-24 16:47 ` Russell King
2005-07-24 17:01   ` Richard Purdie
2005-07-24 17:07   ` randy_dunlap
2005-07-25  4:56   ` Pavel Machek
2005-07-25 15:16     ` Dmitry Torokhov
2005-07-25 15:50       ` Russell King
2005-07-25 16:02         ` Dmitry Torokhov
2005-07-25 16:13           ` Russell King
2005-07-25 16:47             ` Dmitry Torokhov
2005-07-25 16:57               ` Russell King [this message]
2005-07-25 22:07             ` Pavel Machek
2005-07-25 21:39         ` Pavel Machek
2005-07-25 21:36       ` Pavel Machek
2005-07-25 16:04     ` Russell King
2005-07-25 22:06       ` Pavel Machek
2005-07-25 23:03         ` Russell King
2005-07-26  6:28           ` Pavel Machek

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=20050725175738.E7629@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --cc=dtor_core@ameritech.net \
    --cc=lenz@cs.wisc.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=rpurdie@rpsys.net \
    --cc=vojtech@suse.cz \
    /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