Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2710837ybh; Mon, 5 Aug 2019 05:39:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX4364QRdy7PYvdmB7o+9bRighMPpjiW2Onla1y2g1OhE9Xl+a7sBpSVhtzTfHMBkxnBqm X-Received: by 2002:a17:902:bf07:: with SMTP id bi7mr10383261plb.167.1565008749098; Mon, 05 Aug 2019 05:39:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565008749; cv=none; d=google.com; s=arc-20160816; b=VfWgintKRnuIgxC7uGJ9GlJOb3vEeBHflm1H38YJQ0K87urAK8MMX6g7yuZzFNHBLl Tcv3AHI7rNfkzfTH0zbnVIzgLvjRcqTJUme34aoB08Fk4Xq9dFTvIzpRM/kunOHsKOUy uWuLMPup8Rd6QPYnKk6L48boUixsfCLwubfIYgbiUZEuA6uom/Zq975HBaYf32NAWv+d TLc3NdZO/5EW4Pdbt9PbpqlSJY76uW5ENxmuhiIzwYSDze1UNhYaKNIMQ/IzbIDxDm1r Dl4dxajCOwsxlMIoOgkJ3xzTaKWullOkMOr4ojVYSSQPxsCMI9UBIc7XF1eM6gp1uY+W O4xA== 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 :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=8sNpO00CNqxSagIqHb6eDcrwCKCGpdX5LqrTyvMdR1o=; b=MlW3gSF43/Qa//xca7+gLPXndEga7fHqownVvj9V9+YBRHTl8kLQVc3RfkWWX/kTYn dxFzoWXKtL4fL/faGEMXzghqLvnHCj2fonjCeSnW0oypGIaRutllRBpdyLLGGC2HHd8P RCdNKfUOy4ZvYyaSp3qGjOrQr7NxnACpYy8/YiBVQ/tn+EIUuC+JhpNbxd2yQn4Kv8m2 Y4YK1EB/JKtQyOsu2OdWHlOi3ek+x964tBjH6/u651wzFZf2KwVJZaxRB+fYoWt3nL33 Hp6eW6M+o7TuFeqIOraY5JZclwWn4SaobVPanmV0K8x/zMJsicrdjfIvYEYfOhcJ3OK1 uuvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0Ngxu0+f; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si10290719pgs.326.2019.08.05.05.38.53; Mon, 05 Aug 2019 05:39:09 -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; dkim=pass header.i=@kernel.org header.s=default header.b=0Ngxu0+f; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728829AbfHEMiP (ORCPT + 99 others); Mon, 5 Aug 2019 08:38:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:60530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728793AbfHEMiK (ORCPT ); Mon, 5 Aug 2019 08:38:10 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4591E2067D; Mon, 5 Aug 2019 12:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565008690; bh=BUB5G78uORK09bNVqnktRpi2y/1IiEfTb9E8k/FO1bE=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=0Ngxu0+flwi3j9v61vccmmt/RSnHJRJIyfCj76d0rRjdj/GCfhUTjSXMAijH1lSR/ TIeunmNLiEozRRyhkCDrWTjoRZHOTZ9+uPUZf4o53V/+uX1NNiw/TbRmkurc0/D6L2 C/AiTXNzdKbpVbCPM1L8c5w3bqdbcIGl3YPfFgnc= Date: Mon, 5 Aug 2019 14:38:06 +0200 (CEST) From: Jiri Kosina To: Nicolas Saenz Julienne cc: Benjamin Tissoires , dmitry.torokhov@gmail.com, wbauer@tmo.at, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] HID: input: fix a4tech horizontal wheel custom usage In-Reply-To: Message-ID: References: <20190611121320.30267-1-nsaenzjulienne@suse.de> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Aug 2019, 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 == 0 & usage->code == 0). Which ultimately makes > > hid-a4tech ignore the WHEEL/HWHEEL selection event, as it has no > > usage->type. > > > > 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. > > > > 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 repoted > on opensuse and fedora. Sorry for the delay. I've now queued the patch. Thanks for fixing this, -- Jiri Kosina SUSE Labs