lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170512010239.GB513@dtor-ws>
Date:   Thu, 11 May 2017 18:02:39 -0700
From:   Dmitry Torokhov <dmitry.torokhov@...il.com>
To:     KT Liao <kt.liao@....com.tw>
Cc:     linux-kernel@...r.kernel.org, linux-input@...r.kernel.org,
        phoenix@....com.tw
Subject: Re: [PATCH] Input: elantech - force a module ignore ABS mode

On Mon, Dec 12, 2016 at 03:11:03PM +0800, KT Liao wrote:
> One Elan sample which sample version is 0x74 and hw_version is 0x04 has a bug in abs mode, so let it run in default mode
> Signed-off-by: KT Liao <kt.liao@....com.tw>

Applied, thank you.

> ---
>  drivers/input/mouse/elantech.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c
> index db7d1d6..f1c2d10 100644
> --- a/drivers/input/mouse/elantech.c
> +++ b/drivers/input/mouse/elantech.c
> @@ -1687,6 +1687,13 @@ 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 in absolute mode, let it be defualt mode  */
> +		psmouse_info(psmouse,
> +			     "This module only active in default mode\n");
> +		goto init_fail;
> +	}
> +
>  	if (elantech_set_absolute_mode(psmouse)) {
>  		psmouse_err(psmouse,
>  			    "failed to put touchpad into absolute mode.\n");
> -- 
> 2.7.4
> 

-- 
Dmitry

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ