Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3353239ybl; Sun, 25 Aug 2019 14:04:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwP2BqWxCQZsRUdPNI4GvPA6ytAn/NIjU9uVLB5jRxuhnouIq2/yShFaWr4CB7MhgtM8l0 X-Received: by 2002:a63:1749:: with SMTP id 9mr257387pgx.0.1566767042231; Sun, 25 Aug 2019 14:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566767042; cv=none; d=google.com; s=arc-20160816; b=f1do0XpKAggpFgUZaWItlvhmLWfJ1cV992M5ULtRg0yi44mnXtKbVtjDDxcqih8SMP 5jAcqymqlIh0aa22JIRffeBFIYPLjsam8aOjrsszfJ6ILy8GCFkBH1rugPcIqu7vsiQ1 6wdHCdQL+0e74AhBdqTCMFjfw0rK2fLNDUf3sfNLv4Iumd0LBn/qpcG8x2dsmif6OUGj g9ekaxjHMrQIbawz1e0ZmmAIHapsm7wXr6wXJBSbQVnb15inWiog6mrPSsijR4UuYKaE ft7fjdHGyNoR5WmC94iQSi5W8eOglfOFgwfl8RXXZXO1GsOVztaYKo6vy1TFy6uUQyVf 3leA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=L59m7xZutWfxf4jNooxFXJQnWZwEz/g/yDZlcq4KgQM=; b=rc9vUUCEmZSW5X0duE9+uxShAhQYgeR9gTtWao/y3R6xTNiec+d1gMaGl9Xvloxnz4 C7IywDG8lXHjvgYcmtVxWG3Db/5sxjLz9uSfIDBAZqS8AzgREhK+OKXMwNHsKqNw2jdU Y6mWbWU/lS5rS60hegExJRrnB6Vd89PAeKtDtBg71DH9lgNE1CdH53egNW4IBVGE9N5L uJuZzH1xDAzh1gMpEYTDKu17R7Q13hcXcBRbC1WHxzAXKHhMHR3JFvXwtQcf+/AeUz/0 A99jkpnPU8HahvT3v3XemGbmuwJiLLvmSP8Rx/CLmUNzb8mcr82V6MWhYMlR8u+6b33U N7Hw== 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 130si8480996pfb.117.2019.08.25.14.03.46; Sun, 25 Aug 2019 14:04:02 -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 S1728937AbfHYU5i (ORCPT + 99 others); Sun, 25 Aug 2019 16:57:38 -0400 Received: from forward103p.mail.yandex.net ([77.88.28.106]:52589 "EHLO forward103p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728730AbfHYU5i (ORCPT ); Sun, 25 Aug 2019 16:57:38 -0400 X-Greylist: delayed 428 seconds by postgrey-1.27 at vger.kernel.org; Sun, 25 Aug 2019 16:57:36 EDT Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 25C2018C010C; Sun, 25 Aug 2019 23:50:26 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Ym4u5Q4aFS-oPEC4827; Sun, 25 Aug 2019 23:50:26 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id dS9oAfFzFc-oOL01eRX; Sun, 25 Aug 2019 23:50:24 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: Re: Re: [PATCH v2] HID: input: fix a4tech horizontal wheel custom usage To: Jiri Kosina Cc: Nicolas Saenz Julienne , Benjamin Tissoires , dmitry.torokhov@gmail.com, wbauer@tmo.at, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190611121320.30267-1-nsaenzjulienne@suse.de> From: Heorhi Valakhanovich Message-ID: Date: Sun, 25 Aug 2019 23:50:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/5/19 3:38 PM, Jiri Kosina wrote: > 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, > Any plans to apply this patch on top of 5.2.* and 5.1.* ?