mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: "Vijay R. Iyengar" <Vijay.Iyengar@kpitcummins.com>
Cc: "jic23@hermes.cam.ac.uk" <jic23@hermes.cam.ac.uk>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"sameo@linux.intel.com" <sameo@linux.intel.com>,
	David Dajun Chen <Dajun.Chen@diasemi.com>,
	"Ashish P. Chavan" <Ashish.Chavan@kpitcummins.com>,
	Nitin Shah <Nitin.Shah@kpitcummins.com>
Subject: Re: [PATCH] MFD of DA9052 Linux device drivers (1/9)
Date: Wed, 9 Jun 2010 13:55:19 +0100	[thread overview]
Message-ID: <20100609125518.GC7340@sirena.org.uk> (raw)
In-Reply-To: <371569CBCFB2E745B891DBB88B2DFDDD19CAEABB32@KCINPUNHJCMS01.kpit.com>

On Wed, Jun 09, 2010 at 05:04:09PM +0530, Vijay R. Iyengar wrote:

[Please fix your MUA to word wrap lines at ~80 columns.  I've reflowed
the text here]

> > These are looking pretyt touch screen specific.  What are 
> > they doing in
> > this patch?

> We have designed the EH (interrupt handler driver) and the TSI (touch
> screen driver) in a manner that the EH reads raw co-ordinates from the
> touch control registers of the DA9052 hardware in response to sampling
> ready interrupt requests and stores them in a FIFO for TSI further
> processing.

> We are implementing a common Event handler module for processing all
> the interrupt events from the DA9052 devices like battery, regulator,
> RTC etc. Fetching the TSI samples on touch events by EH rather than
> notifying the TSI driver through a call-back routine helps us to get a
> good amount of filtered touch samples from the TSI driver. 

> Hence we intend to keep the TSI raw co-ordinate reading in the event
> handling module, which is a part of the MFD driver.

The additional effort involved in pushing the interrupt notification to
the touchscreen driver is so small that it's not going to make a
meaningful difference to the performance of your driver.  I'd guess
you're already doing an equivalent amount of work managing the data
queues so I'd anticipate that the performance would be at worst
equivalent and likely better using something idiomatic (given that you
could inject the touchscreen data into the input subsystem immediately
from within interrupt context rather than having threads sitting around
in the background which need to at least be scheduled before the data is
delivered).

Obviously, if you've got benchmarking that demonstrates different
performance then I'm sure people would be interested in improving the
standard Linux stack for this.

  reply	other threads:[~2010-06-09 12:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <F56EA673D3E56E48804FE2B0D23EFD2D217420461E@KCINPUNHJCMS01.kpit.com>
2010-06-09 11:34 ` Vijay R. Iyengar
2010-06-09 12:55   ` Mark Brown [this message]
2010-05-19  9:16 David Dajun Chen
2010-05-19 10:15 ` Jonathan Cameron
2010-05-19 11:13 ` Alan Cox
2010-05-19 11:21 ` Jonathan Cameron
2010-05-19 17:13 ` Randy Dunlap
2010-05-21  0:06 ` Mark Brown

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=20100609125518.GC7340@sirena.org.uk \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=Ashish.Chavan@kpitcummins.com \
    --cc=Dajun.Chen@diasemi.com \
    --cc=Nitin.Shah@kpitcummins.com \
    --cc=Vijay.Iyengar@kpitcummins.com \
    --cc=jic23@hermes.cam.ac.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sameo@linux.intel.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

all inboxes | Powered by JetHome®