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: <alpine.LNX.2.00.1609261731560.22028@cbobk.fhfr.pm>
Date:   Mon, 26 Sep 2016 17:32:41 +0200 (CEST)
From:   Jiri Kosina <jikos@...nel.org>
To:     Masaki Ota <012nexus@...il.com>
cc:     linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
        kai.heng.feng@...onical.com, masaki.ota@...alps.com
Subject: Re: [PATCH] Fix a issue that Alps Touchpad cursor does not work

On Fri, 23 Sep 2016, Masaki Ota wrote:

> fix Touchpad cursor does not work after touching Touchpad 
> by 3 or more fingers.

Please provide more verbose changelog -- namely why the current code is 
wrong and how does your patch fixes it.

Thanks.

> Signed-off-by: Masaki Ota <masaki.ota@...alps.com>
> ---
>  drivers/hid/hid-alps.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c
> index 048befd..610df92 100644
> --- a/drivers/hid/hid-alps.c
> +++ b/drivers/hid/hid-alps.c
> @@ -190,16 +190,16 @@ static int alps_raw_event(struct hid_device *hdev,
>  			if (z != 0) {
>  				input_mt_report_slot_state(hdata->input,
>  					MT_TOOL_FINGER, 1);
> +				input_report_abs(hdata->input,
> +					ABS_MT_POSITION_X, x);
> +				input_report_abs(hdata->input,
> +					ABS_MT_POSITION_Y, y);
> +				input_report_abs(hdata->input,
> +					ABS_MT_PRESSURE, z);
>  			} else {
>  				input_mt_report_slot_state(hdata->input,
>  					MT_TOOL_FINGER, 0);
> -				break;
>  			}
> -
> -			input_report_abs(hdata->input, ABS_MT_POSITION_X, x);
> -			input_report_abs(hdata->input, ABS_MT_POSITION_Y, y);
> -			input_report_abs(hdata->input, ABS_MT_PRESSURE, z);
> -
>  		}
>  
>  		input_mt_sync_frame(hdata->input);

-- 
Jiri Kosina
SUSE Labs

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ