mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 15:43:59 +08:00
2ec6f246c3
The usbtouchscreen module implements a driver for the TSC-10 DM USB touchscreen controllers, but assumes a 2-byte response for the CMD_RESET and CMD_RATE commands, when they can be only a single byte when no EEPROM is connected. The driver worked with an earlier controller revision, but new revisions of the controller fail. It seems the problem is that the early controller had the SEL4/EEPROM-CS pin high, but the new controller has it down, making the response different. Without the fix, the controller would answer the single byte 0x06 (ACK), making the init fail with -ENODEV because buf[1] is 0xFF (as initialized before). As the single byte is the only thing we need to check it was ok, there is no need to verify the second byte. The [0x15 0x01] case is the NAK [0x15] response for when there is no data in the EEPROM [bit-0 of second byte set], so I let that be, as I don't have any controller with an EEPROM. With this patch, both the earlier and latest controller work the same. Note: This was previously submited as BUG #11961 [1] on the bugzilla tracker, but rebased to version 2.6.27.4 and with unnecessary comments and printk's removed. [1] http://bugzilla.kernel.org/show_bug.cgi?id=11961 Signed-off-by: Nuno Lucas <ntlucas@gmail.com> Acked-by: Daniel Ritz <daniel.ritz@gmx.ch> Signed-off-by: Dmitry Torokhov <dtor@mail.ru> |
||
---|---|---|
.. | ||
ads7846.c | ||
atmel_tsadcc.c | ||
corgi_ts.c | ||
elo.c | ||
fujitsu_ts.c | ||
gunze.c | ||
h3600_ts_input.c | ||
hp680_ts_input.c | ||
htcpen.c | ||
inexio.c | ||
jornada720_ts.c | ||
Kconfig | ||
mainstone-wm97xx.c | ||
Makefile | ||
migor_ts.c | ||
mk712.c | ||
mtouch.c | ||
penmount.c | ||
touchit213.c | ||
touchright.c | ||
touchwin.c | ||
ucb1400_ts.c | ||
usbtouchscreen.c | ||
wm97xx-core.c | ||
wm9705.c | ||
wm9712.c | ||
wm9713.c |