Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7159960ybi; Thu, 1 Aug 2019 04:08:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeROABjFq74XMXiLAcX8mx/2NfUtZK3thw69FsXshWFwMRzVf8oQAUgkBiD9DY12u52VDZ X-Received: by 2002:a62:7890:: with SMTP id t138mr43801194pfc.238.1564657696300; Thu, 01 Aug 2019 04:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564657696; cv=none; d=google.com; s=arc-20160816; b=Gahr49UaWyxMhUFOOWC+VWx3/fguAdO4hs0FQCDEqqQN1RbsfkxYZPYq7TNsQqhxhJ 2QTBZFjaLaS/q++qkPoY0RW7mIn/XsmHYLlknEQ2ek8fw3NPKYGKbJgrtKz9o6jHgL00 AzNct0kI9R6oTlfmggSfK1HGWv/t6LdcSjTp3JmxcUHDF2srgpClZhBXC1EWP/87l74J rEr4EmjvQ7g2CNUmpEG2NgMwxByMRjvU5vafCRyZnHZp/SmVexkjTZ80c3hHM0/9yHIm R/LnhwEXQePiWfjR/HfqKKpDB5iT7miJ7VmVVI2kTcVjbwRYRMUm3S+9ew/XzI6rp7d9 gv8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=qUo2yAzmtrpiBsAA6Gexu/YcxqySu9rkZBJf+bUvVyk=; b=k9oBIgEnpLMCSvoqESFP4fxWR5FxUUWEoptssOSzLC/oRRHxlsyBZcT52P2UzapCzW eSGn1XTUUfy6U4iudzUkXnSDhLNmyQNp8naenaWHWLQmjF4bxLmROcLRYPFgr9UhmsNh FRVguWrsg63aoT8H9LW9S3z17w8OWf5xz2BVNMn/Jj8hsWogd4uzWEdI3lAMFiN8I/SB scMP35oWC/al/H5Jxs/MY2rMe4PF4oVRhy7vUtJ2wLTxuv2r3oyGQhZGWRs/EUjyXHI7 vtu9ofp/To/iK0O8UveSQMrWZ6g9zugKbPTxRx7J5TLXkZ6RjZM5Fje6qS4SZQVf6FxJ Qc+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n129si35597417pgn.254.2019.08.01.04.08.01; Thu, 01 Aug 2019 04:08:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731249AbfHAK4y (ORCPT + 99 others); Thu, 1 Aug 2019 06:56:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:45040 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726783AbfHAK4y (ORCPT ); Thu, 1 Aug 2019 06:56:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 573ACB01C; Thu, 1 Aug 2019 10:56:53 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2] HID: input: fix a4tech horizontal wheel custom usage From: Nicolas Saenz Julienne To: Jiri Kosina , Benjamin Tissoires Cc: dmitry.torokhov@gmail.com, wbauer@tmo.at, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 01 Aug 2019 12:56:51 +0200 In-Reply-To: <20190611121320.30267-1-nsaenzjulienne@suse.de> References: <20190611121320.30267-1-nsaenzjulienne@suse.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-UfwihCv2OFuftwo/Kw1F" User-Agent: Evolution 3.32.4 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-UfwihCv2OFuftwo/Kw1F Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2019-06-11 at 14:13 +0200, Nicolas Saenz Julienne wrote: > Some a4tech mice use the 'GenericDesktop.00b8' usage to inform whether > the previous wheel report was horizontal or vertical. Before > c01908a14bf73 ("HID: input: add mapping for "Toggle Display" key") this > usage was being mapped to 'Relative.Misc'. After the patch it's simply > ignored (usage->type =3D=3D 0 & usage->code =3D=3D 0). Which ultimately m= akes > hid-a4tech ignore the WHEEL/HWHEEL selection event, as it has no > usage->type. >=20 > We shouldn't rely on a mapping for that usage as it's nonstandard and > doesn't really map to an input event. So we bypass the mapping and make > sure the custom event handling properly handles both reports. >=20 > Fixes: c01908a14bf73 ("HID: input: add mapping for "Toggle Display" key") > Signed-off-by: Nicolas Saenz Julienne > --- It would be nice for this patch not to get lost. It fixes issues both repot= ed on opensuse and fedora. I can resubmit it if needed. Regards, Nicolas --=-UfwihCv2OFuftwo/Kw1F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl1CxXMACgkQlfZmHno8 x/5dTQf/fVEdcSkvGY8ltv5SMW+Rvg6bs5uwo/3S0Z1XQ8irP/Agxrykvnur8qPh CkVbsTRUFZQnTDI1nKojAyzHHIkKqGaDAi9+PO/vAuPrcBmuNeAgTQRtCJj+PSxe UfkdqjPyHSLkLrlPLCX4MCvWku4Oy8Bs+JnOvYSYoZkSmKT2x+wGNFmDaUCYj7bG o3n/DJHejomEvPHnVAp1TRhCOaQ8bcMD25wR/YftW1Mu6niCrrveXg5tNFPWEswo 5XylfZ0KblcuZQTvtvp22MJiat1BGdNzYbJs8cGMzGtjWtocP/NCU48RlGkxFWN5 9Emby6PRbBBji460QnxUpt5RD8HDPQ== =xtev -----END PGP SIGNATURE----- --=-UfwihCv2OFuftwo/Kw1F--