Add support for Wacom W8001 penabled serial touchscreen
Subsystems (2)
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
@@ -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
@@ -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
@@ -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
Dmitry Torokhov
maintainerHi 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,
jayaThe Wacom W8001 sensor is a sensor device (uses electromagnetic resonance) and it is interfaced via its serial microcontroller to the host.
Signed-off-by Jaya Kumar <[email protected]>
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