16 Sep 01:30
[patch 2.6.27-rc6] ads7846: work better with DMA
From: David Brownell <david-b <at> pacbell.net>
Subject: [patch 2.6.27-rc6] ads7846: work better with DMA
Newsgroups: gmane.linux.kernel.input
Date: 2008-09-15 23:32:17 GMT
Subject: [patch 2.6.27-rc6] ads7846: work better with DMA
Newsgroups: gmane.linux.kernel.input
Date: 2008-09-15 23:32:17 GMT
From: David Brownell <dbrownell <at> users.sourceforge.net>
We had a report a while back that the ads7846 driver had some issues
when used with DMA-based SPI controllers (like atmel_spi) on systems
where main memory is not DMA-coherent (most non-x86 boards) ... but no
mergeable patch addressed it. Pending any more comprehensive fix,
just push the relevant data into cache lines that won't be shared,
preventing those issues (but not in a very pretty way).
Signed-off-by: David Brownell <dbrownell <at> users.sourceforge.net>
---
Please merge for 2.6.27-final (and forward to -stable for backports);
this lack-of-patch has lingered for way too long.
drivers/input/touchscreen/ads7846.c | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -85,10 +85,6 @@ struct ads7846 {
u16 x_plate_ohms;
u16 pressure_max;
- u8 read_x, read_y, read_z1, read_z2, pwrdown;
- u16 dummy; /* for the pwrdown read */
- struct ts_event tc;
-
struct spi_transfer xfer[18];
struct spi_message msg[5];
struct spi_message *last_msg;
(Continue reading)
RSS Feed