Skip to contentSkip to conversation

Add support for Wacom W8001 penabled serial touchscreen

RFC In review Jaya Kumar 2 participants 2 messages Nov 19, 2008

Subsystems (2)
lore
Share & tools
lore

Jaya Kumar

author
#0 lore raw

RFC 1/1 Add support for Wacom W8001 penabled serial touchscreen

Hi Dmitry, linux-input,

I am resending this patch which I had posted a few weeks back. I would really appreciate any feedback.

Thanks,
jaya

The Wacom W8001 sensor is a sensor device (uses electromagnetic resonance) and it is interfaced via its serial microcontroller to the host.

drivers/input/touchscreen/Kconfig +13 -0
index 6e1e8c6..239c4f6 100644
@@ -91,6 +91,19 @@ config TOUCHSCREEN_ELO
 	  To compile this driver as a module, choose M here: the
 	  module will be called elo.
 
+config TOUCHSCREEN_WACOM_W8001
+	tristate "Wacom W8001 penabled serial touchscreen"
+	select SERIO
+	help
+	  Say Y here if you have an Wacom W8001 penabled serial touchscreen
+	  connected to your system.
+
+	  If unsure, say N.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called wacom_w8001.
+
+
 config TOUCHSCREEN_MTOUCH
 	tristate "MicroTouch serial touchscreens"
 	select SERIO
drivers/input/touchscreen/Makefile +1 -0
index 15cf290..3dc84d3 100644
@@ -26,6 +26,7 @@ obj-$(CONFIG_TOUCHSCREEN_TOUCHIT213)	+= touchit213.o
 obj-$(CONFIG_TOUCHSCREEN_TOUCHRIGHT)	+= touchright.o
 obj-$(CONFIG_TOUCHSCREEN_TOUCHWIN)	+= touchwin.o
 obj-$(CONFIG_TOUCHSCREEN_UCB1400)	+= ucb1400_ts.o
+obj-$(CONFIG_TOUCHSCREEN_WACOM_W8001)	+= wacom_w8001.o
 obj-$(CONFIG_TOUCHSCREEN_WM97XX)	+= wm97xx-ts.o
 wm97xx-ts-$(CONFIG_TOUCHSCREEN_WM9705)	+= wm9705.o
 wm97xx-ts-$(CONFIG_TOUCHSCREEN_WM9712)	+= wm9712.o
drivers/input/touchscreen/wacom_w8001.c new file +325 -0

325 lines not on this page · raw message

include/linux/serio.h +1 -0
index 25641d9..1bcb357 100644
@@ -213,5 +213,6 @@ static inline void serio_unpin_driver(struct serio *serio)
 #define SERIO_ZHENHUA	0x36
 #define SERIO_INEXIO	0x37
 #define SERIO_TOUCHIT213	0x37
+#define SERIO_W8001	0x39
 
 #endif
Signature · 1 line
1.5.4.3
maintainer
#1 lore raw

Hi Jaya,

Quoted 5 lines · Jaya Kumar

Hi Dmitry, linux-input,

I am resending this patch which I had posted a few weeks back. I would really appreciate any feedback.

Quoted 9 lines

Thanks,
jaya

The Wacom W8001 sensor is a sensor device (uses electromagnetic resonance) and it is interfaced via its serial microcontroller to the host.

Overall looks good, with the following exceptions:

- you don't seem to report tilt events although you parse the data;
- you don't neet to have cmd_mutex since you call w8001_command just once upon initialization; you don't need to re-init completion either. I'd also remove w8001_async_command and just did serio_write of that 1 character rigth in w8001_connect.
- I wouldn't use expected_packet but rather examine return of wait_for_completion_timeout to figure out if query succeeded or not.

Thanks!

Signature · 1 line
Dmitry