1.support new ic type for version 4.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Sam,
FYI:
You sent this message as both plain/text and html, but vger.kernel.org mailing lists are configured to discard all emails with html in them, so while I did get your reply others did not. Please try to find mail agent allowing you to use only plain text when interacting with Linux-related mailing list.
In any case I received your updated patch and applied it. It should show up in mainline with my next pull request (couple of days).
Thanks!
Quoted 218 lines · 洪一竹
Thank you for your prompt reply!
Reply message below.
-----Original Message-----
From: Dmitry Torokhov [mailto:[email protected]]
Sent: Wednesday, January 07, 2015 3:26 PM
To: Sam hung
Cc: [email protected]; [email protected]
Subject: Re: [PATCH] [ADD] 1.support new ic type for version 4.Quoted 4 lines · Dmitry Torokhov
Hi Sam,
Quoted 29 lines
Quoted 27 lines · Sam hung
---
drivers/input/mouse/elantech.c | 23 +++++++++++++----------1 file changed, 13 insertions(+), 10 deletions(-)(quoted diff) +0
-0
b/drivers/input/mouse/elantech.cindex f2b9780..4891d07 100644---
a/drivers/input/mouse/elantech.c+++
b/drivers/input/mouse/elantech.c(quoted diff) +0
-2@@ -700,14 +700,14 @@ static int elantech_packet_check_v1(struct psmouse *psmouse) static int elantech_debounce_check_v2(struct psmouse *psmouse) { - /* - * When we encounter packet that matches this exactly, it meansthe
Quoted 1 line
Review static int elantech_packet_check_v1(struct · line 710
Quoted 1 line
(quoted diff) +0
-1- * hardware is in debounce status. Just ignore the wholepacket.
Quoted 3 lines
Review static int elantech_packet_check_v1(struct · line 713
Quoted 3 lines
(quoted diff) +0
-2- */ - const u8 debounce_packet[] = { 0x84, 0xff, 0xff, 0x02, 0xff,
0xff};Quoted 5 lines
Review static int elantech_packet_check_v1(struct
Quoted 5 lines
(quoted diff) +0
-3- unsigned char *packet = psmouse->packet; - - return !memcmp(packet, debounce_packet,
sizeof(debounce_packet));Quoted 3 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+ /* + * When we encounter packet that matches this exactly, it meansthe
Quoted 5 lines
Review
Quoted 5 lines
(quoted diff) +3
-0+ * hardware is in debounce status. Just ignore the whole packet. + */ + const u8 debounce_packet[] = { 0x84, 0xff, 0xff, 0x02, 0xff,
0xff};Quoted 5 lines
Review
Quoted 5 lines
(quoted diff) +3
-0+ unsigned char *packet = psmouse->packet; + + return !memcmp(packet, debounce_packet,
sizeof(debounce_packet));Quoted 11 lines
Quoted 1 line
}
Hmm, this chunk seems to be replacing spaces with tabs... I'd rather
had it separate from the hardware version changes.
I'll pick up the chunk below though.
OK,In this Patch I will not change these lines (‘space’to ‘tab’).
Ah, I missed the fact that the patch does not have your "signed-off-by"
signature (see
Documentation/SubmittingPatches). Please resend with it.Thanks for your reminder.
I will fix this problem.
Quoted 20 lines
Quoted 19 lines
static int
elantech_packet_check_v2(struct psmouse *psmouse)@@-1499,7 +1499,7 @@ static const struct
dmi_system_idno_hw_res_dmi_table[] = {
/*
* determine hardware version and set some properties according to it.
*/
(quoted diff) +1
-1-static int elantech_set_properties(struct elantech_data *etd) +static int elantech_set_properties(struct psmouse *psmouse, structQuoted 7 lines
Quoted 7 lines
+elantech_data *etd)
{
/* This represents the version of IC body. */ int ver = (etd->fw_version & 0x0f0000) >> 16; @@ -1520,9+1520,12
Quoted 12 lines
Quoted 11 lines
@@ static int
elantech_set_properties(struct elantech_data *etd)case 7: case 8: case 9:(quoted diff) +2
-0+ case 10: + case 13:Quoted 7 lines
Quoted 7 lines
etd->hw_version = 4; break; default:+ psmouse_err(psmouse, "failed to setting hw
version.\n");
The caller of
elantech_set_properties()already issues message about unknown hardware version, why do we need to have it here as well?I think you're right.
I will fix this line.
Quoted 14 lines
Quoted 13 lines
return -1; } }(quoted diff) +0
-0@@ -1593,7 +1596,7 @@ int elantech_init(struct psmouse *psmouse) } etd->fw_version = (param[0] << 16) | (param[1] << 8) | param[2];Quoted 5 lines
Review int elantech_init(struct psmouse *psmouse)
Quoted 5 lines
(quoted diff) +1
-1- if (elantech_set_properties(etd)) { + if (elantech_set_properties(psmouse, etd)) { psmouse_err(psmouse, "unknown hardware version,aborting...\n");
Quoted 9 lines
Quoted 9 lines
goto init_fail; }--
1.8.3.2
Thanks.
Signature · 1 line
Dmitry
Signature · 5 lines
Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html