diff options
author | Mark Brown <broonie@kernel.org> | 2018-05-18 11:44:19 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-05-18 11:44:19 +0100 |
commit | 0e7fcfff8dc3b5f08f0bee84ce00d3234992e0d2 (patch) | |
tree | 26197742be1599e1fb8aa38cde3f0a2e7526d20d /drivers/input/mouse/elantech.c | |
parent | 2da9deac1e123ce8f9c22919f9f49b3a50d0c3fd (diff) | |
parent | 69847b97f21141c2d4f6e9c1b22d932b7add3182 (diff) |
Merge tag 'v4.4.132' into linux-linaro-lsk-v4.4
This is the 4.4.132 stable release
Diffstat (limited to 'drivers/input/mouse/elantech.c')
-rw-r--r-- | drivers/input/mouse/elantech.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 51b96e9bf793..06ea28e5d7b4 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -1715,6 +1715,17 @@ int elantech_init(struct psmouse *psmouse) etd->samples[0], etd->samples[1], etd->samples[2]); } + if (etd->samples[1] == 0x74 && etd->hw_version == 0x03) { + /* + * This module has a bug which makes absolute mode + * unusable, so let's abort so we'll be using standard + * PS/2 protocol. + */ + psmouse_info(psmouse, + "absolute mode broken, forcing standard PS/2 protocol\n"); + goto init_fail; + } + if (elantech_set_absolute_mode(psmouse)) { psmouse_err(psmouse, "failed to put touchpad into absolute mode.\n"); |