This patch fixes some v3 hardware (fw_version: 0x150500) wrongly detected
as v2 hardware.
Reported-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: JJ Ding <redacted>
---
Hi list,
This is patched against v3.2-rc1.
Marc, could you please test this again? Thanks a lot.
br,
jj
drivers/input/mouse/elantech.c | 26 ++++++++++++++++++--------
1 files changed, 18 insertions(+), 8 deletions(-)
@@ -1210,18 +1210,28 @@ static int elantech_reconnect(struct psmouse *psmouse)*/staticintelantech_set_properties(structelantech_data*etd){+/* This represents the version of IC body. */intver=(etd->fw_version&0x0f0000)>>16;+/* Early version of Elan touchpads doesn't obey the rule. */if(etd->fw_version<0x020030||etd->fw_version==0x020600)etd->hw_version=1;-elseif(etd->fw_version<0x150600)-etd->hw_version=2;-elseif(ver==5)-etd->hw_version=3;-elseif(ver==6)-etd->hw_version=4;-else-return-1;+else{+switch(ver){+case2:+case4:+etd->hw_version=2;+break;+case5:+etd->hw_version=3;+break;+case6:+etd->hw_version=4;+break;+default:+return-1;+}+}/**Turnonpacketcheckingbydefault.
From: Marc Dietrich <marvin24@gmx.de> Date: 2011-11-08 17:55:58
hi Jj,
On Tuesday 08 November 2011 20:08:19 JJ Ding wrote:
This patch fixes some v3 hardware (fw_version: 0x150500) wrongly detected
as v2 hardware.
Reported-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: JJ Ding <redacted>
---
Hi list,
This is patched against v3.2-rc1.
Marc, could you please test this again? Thanks a lot.
patch works fine here. You may add:
Tested-By: Marc Dietrich [off-list ref]
Btw, are there any known issues with suspend/resume? The touchpad doesn't seem
to wakeup again after resume, but that's propably a problem of our kbd
controller driver. Just in case there's something known...
Thanks Marc
On Tue, 08 Nov 2011 18:55:37 +0100, Marc Dietrich [off-list ref] wrote:
hi Jj,
On Tuesday 08 November 2011 20:08:19 JJ Ding wrote:
quoted
This patch fixes some v3 hardware (fw_version: 0x150500) wrongly detected
as v2 hardware.
Reported-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: JJ Ding <redacted>
---
Hi list,
This is patched against v3.2-rc1.
Marc, could you please test this again? Thanks a lot.
patch works fine here. You may add:
Tested-By: Marc Dietrich [off-list ref]
Thank you for the testing ;-)
Btw, are there any known issues with suspend/resume? The touchpad doesn't seem
to wakeup again after resume, but that's propably a problem of our kbd
controller driver. Just in case there's something known...
Thanks Marc
I am not aware of any issue with suspend/resume, AFAICT. But we really
test mostly on a standard PC hardware, I think I cannot say there's
none, since your board is arm-based.
Thanks,
jj
hi Jj,
On Tuesday 08 November 2011 20:08:19 JJ Ding wrote:
quoted
This patch fixes some v3 hardware (fw_version: 0x150500) wrongly detected
as v2 hardware.
Reported-by: Marc Dietrich<marvin24@gmx.de>
Signed-off-by: JJ Ding<redacted>
---
Hi list,
This is patched against v3.2-rc1.
Marc, could you please test this again? Thanks a lot.
Indeed, it looks good :-)
Acked-by: Éric Piel <eric.piel@tremplin-utc.net>
patch works fine here. You may add:
Tested-By: Marc Dietrich[off-list ref]
Btw, are there any known issues with suspend/resume? The touchpad doesn't seem
to wakeup again after resume, but that's propably a problem of our kbd
controller driver. Just in case there's something known...
Just for the info, I've never received any reports of problems with the
suspend/resume (nor noticed any).
See you,
Éric
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html