LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Nicolas FERRE <nicolas.ferre@rfo.atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@rfo.atmel.com>,
Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] input/spi: add ads7843 support to ads7846 touchscreen driver
Date: Wed, 20 Dec 2006 15:13:09 -0800 [thread overview]
Message-ID: <200612201513.09705.david-b@pacbell.net> (raw)
In-Reply-To: <4582BD29.4020203@rfo.atmel.com>
On Friday 15 December 2006 7:20 am, Nicolas FERRE wrote:
> Add support for the ads7843 touchscreen controller to the ads7846 driver code.
Glad to see this! Is this for AT91sam9261-EK board support, maybe?
> The "pen down" information is managed quite differently as we do not have a
> touch-presure mesurement on the ads7843.
>
> Signed-off-by: Nicolas Ferre <nicolas.ferre@rfo.atmel.com>
> ---
>
> I add a ads7843_rx function to manage the end of a measurement cycle. As for
> ads7846_rx, it does the real work and comnunicates with the input subsystem.
> The timer function is responsible of taking the pen up/pen down state through
> the board specific get_pendown_state() callback.
Hmm, unfortunately there are a lot of updates to this driver sitting in
the linux-omap tree ... the N770 guys really put a lot of solid work into
it (ISTR seeing a statistical plot showing how touchscreen debounce helps
get stable readings!), but those patches didn't get upstream yet.
One of the more critical of those patches addressed much the same pendown
state issue; it turns out that measuring pressure (after the pendown irq)
isn't the best way to notice when pen status becomes "up".
Let me try to sort out the mess with those updates, and ask you to refresh
this ads7843 support against that more-current ads7846 code. (Or if you
want a preview, have a look at the linux-omap tree. There's a clone of
that in the GIT area on kernel.org if you want.)
> As the SPI underlying code behaves quite differently from a controller driver
> to another whan not having a tx_buf filled, I have add a zerroed buffer to give
> to the spi layer while receiving data.
You must be working with a buggy controller driver then. That part of
this patch should never be needed. It's expected that rx-only transfers
will omit a tx buf; all controller drivers must handle that case.
- Dave
> Already posted to lkml :
> http://lkml.org/lkml/2006/12/15/71
>
next parent reply other threads:[~2006-12-20 23:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4582BD29.4020203@rfo.atmel.com>
2006-12-20 23:13 ` David Brownell [this message]
2006-12-21 13:08 ` Nicolas Ferre
2006-12-21 14:40 ` Nicolas Ferre
2006-12-22 20:05 ` David Brownell
2006-12-22 19:31 ` David Brownell
2006-12-22 20:14 ` Dmitry Torokhov
2006-12-22 19:25 [patch 2.6.20-rc1 6/6] input: ads7846 directly senses PENUP state David Brownell
2006-12-28 22:37 ` David Brownell
2006-12-29 6:22 ` Dmitry Torokhov
2006-12-29 20:26 ` David Brownell
2007-02-16 17:37 ` [PATCH] input/spi: add ads7843 support to ads7846 touchscreen driver Nicolas Ferre
2007-02-16 19:08 ` David Brownell
2007-02-19 12:48 ` Nicolas Ferre
2007-02-19 18:46 ` David Brownell
2007-02-20 9:19 ` Nicolas Ferre
2007-03-01 4:49 ` Dmitry Torokhov
-- strict thread matches above, loose matches on Subject: below --
2006-12-15 14:45 Nicolas FERRE
2006-12-20 22:03 ` Andrew Morton
2006-12-21 9:57 ` Nicolas Ferre
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=200612201513.09705.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas.ferre@rfo.atmel.com \
--cc=patrice.vilchez@rfo.atmel.com \
--subject='Re: [PATCH] input/spi: add ads7843 support to ads7846 touchscreen driver' \
/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
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).