linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] Input: ti_am335x_tsc: Fix incorrect step config 5 wire touschscreen
@ 2014-09-04 14:39 Sebastian Andrzej Siewior
  2014-09-04 14:39 ` [PATCH 2/3] input: ti_am335x_tsc: Remove DT wire-config parameter Sebastian Andrzej Siewior
  2014-09-04 14:39 ` [PATCH 3/3] ARM: DTS: AM335x: Drop TSC's wire-config parameters Sebastian Andrzej Siewior
  0 siblings, 2 replies; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2014-09-04 14:39 UTC (permalink / raw)
  To: linux-input
  Cc: Dmitry Torokhov, Felipe Balbi, linux-omap, Jeff Lance,
	Sebastian Andrzej Siewior

From: Jeff Lance <j-lance1@ti.com>

The step config setting for a 5 wire touchscreen is incorrectly sets the
Y coordinates.
It was broken while we moved to DT. If you look close, the change was:

|- STEPCONFIG_XNP | STEPCONFIG_YPN;
|+ ts_dev->bit_xn | ts_dev->bit_yp;

while bit_xn = STEPCONFIG_XNN and bit_yp = STEPCONFIG_YNN. Not quite the
same :)

Fixes: bb76dc09ddfc ("input: ti_am33x_tsc: Order of TSC wires, made
configurable")
Signed-off-by: Jeff Lance <j-lance1@ti.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 drivers/input/touchscreen/ti_am335x_tsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c
index 2ce649520fe0..092fa8b31c67 100644
--- a/drivers/input/touchscreen/ti_am335x_tsc.c
+++ b/drivers/input/touchscreen/ti_am335x_tsc.c
@@ -157,7 +157,7 @@ static void titsc_step_config(struct titsc *ts_dev)
 		break;
 	case 5:
 		config |= ts_dev->bit_xp | STEPCONFIG_INP_AN4 |
-				ts_dev->bit_xn | ts_dev->bit_yp;
+				STEPCONFIG_XNP | STEPCONFIG_YPN;
 		break;
 	case 8:
 		config |= ts_dev->bit_yp | STEPCONFIG_INP(ts_dev->inp_xp);
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-04 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-04 14:39 [PATCH 1/3] Input: ti_am335x_tsc: Fix incorrect step config 5 wire touschscreen Sebastian Andrzej Siewior
2014-09-04 14:39 ` [PATCH 2/3] input: ti_am335x_tsc: Remove DT wire-config parameter Sebastian Andrzej Siewior
2014-09-04 14:39 ` [PATCH 3/3] ARM: DTS: AM335x: Drop TSC's wire-config parameters Sebastian Andrzej Siewior

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).