Skip to content

Commit c981523

Browse files
palidtor
authored andcommitted
Input: alps - warn about unsupported ALPS V9 touchpad
Support for devices with ALPS_PROTO_V9 is not implemented yet but we can detect these alps touchpads and warn users about it. Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 09c398b commit c981523

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎drivers/input/mouse/alps.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ static const struct alps_protocol_info alps_v8_protocol_data = {
164164
ALPS_PROTO_V8, 0x18, 0x18, 0
165165
};
166166

167+
static const struct alps_protocol_info alps_v9_protocol_data = {
168+
ALPS_PROTO_V9, 0xc8, 0xc8, 0
169+
};
170+
167171
/*
168172
* Some v2 models report the stick buttons in separate bits
169173
*/
@@ -2838,6 +2842,12 @@ static int alps_identify(struct psmouse *psmouse, struct alps_data *priv)
28382842
} else if (e7[0] == 0x73 && e7[1] == 0x03 &&
28392843
e7[2] == 0x28 && ec[1] == 0x01) {
28402844
protocol = &alps_v8_protocol_data;
2845+
} else if (e7[0] == 0x73 && e7[1] == 0x03 && e7[2] == 0xc8) {
2846+
protocol = &alps_v9_protocol_data;
2847+
psmouse_warn(psmouse,
2848+
"Unsupported ALPS V9 touchpad: E7=%3ph, EC=%3ph\n",
2849+
e7, ec);
2850+
return -EINVAL;
28412851
} else {
28422852
psmouse_dbg(psmouse,
28432853
"Likely not an ALPS touchpad: E7=%3ph, EC=%3ph\n", e7, ec);

‎drivers/input/mouse/alps.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#define ALPS_PROTO_V6 0x600
2424
#define ALPS_PROTO_V7 0x700 /* t3btl t4s */
2525
#define ALPS_PROTO_V8 0x800 /* SS4btl SS4s */
26+
#define ALPS_PROTO_V9 0x900 /* ss3btl */
2627

2728
#define MAX_TOUCHES 4
2829

0 commit comments

Comments
 (0)