Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp64151pxb; Wed, 14 Apr 2021 09:29:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDxwKhovIoSUYEwbQbHoCnNnsltkVqgwbO8vAUTov7tW7LuSZl+f1kIUDoc7ueN5Qa7Ikr X-Received: by 2002:a17:907:2151:: with SMTP id rk17mr28189656ejb.203.1618417757918; Wed, 14 Apr 2021 09:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618417757; cv=none; d=google.com; s=arc-20160816; b=SdNrpJ1gpNHoxESxu4CwG4JxdoZb68urp9jfHn+1wCLKzYRmWuPHv082MK8b04oghf ZqrXiZLCw9v0rnoyKMJWQ5lFGFebKUTPe6wjhtL2e5XtBBjr/ydinZ5V6flOJyduuhC4 8LlhfoAYxmknqzLbhIWvxptIjS1V6Do7/LKA/TOMuwFlpKYPWrl8WrE2/GZZnx9bNdMC ndpEoC8mY1iSvMzdPcoM7KuLkeA9m5WkiXO3R6wEtocYz7vsIg0sz1pSTlx4H/xHdNYE Xy6Amrt8C88+XBsAF0trKYlhLR2hnmwI8OViCtTiba5a8xieORW8bxGMWKaP2I/vwOvx KFzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=+GL0bccGhF91/pU0CPQ6qtX8Mn4OD4Tg1yHw5xduEWU=; b=Z0csWKbbbu94lOUXfbE3EgQy2b3R3nhbImdBFhDGM9Dw5yRAjFUKsmCY0cM6rDQvuh JhZT7vj0Q7DMSexxtAfwMQyetglm1c/0zddx1jKodVR+t64jNDvs3eKzfVkaoRgfmzxv P+xw8iYwgmjlddgJ6w1aJBl0Wt3pT/r5VofTZO5fxL+GfZKL0v6kQqfaUxC6kWsTqmyw ioB7516h5nBBQw1uCa8qBZwhCR/hXSuMapZq/4n+/iUe5N7mBDdaF4aVpP41xQY7OB5m ioA2ODHUMIL2m/X2rlTR6qdoiZ6mRE2UGAIc7Gg/CyiraFT4HdZCOSy84Fs1a9kKFvgL AniQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tnH66VIy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn3si15080610ejc.364.2021.04.14.09.28.53; Wed, 14 Apr 2021 09:29:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tnH66VIy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349221AbhDNODW (ORCPT + 99 others); Wed, 14 Apr 2021 10:03:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347931AbhDNODU (ORCPT ); Wed, 14 Apr 2021 10:03:20 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DC52C061574; Wed, 14 Apr 2021 07:02:57 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id g5so24898783ejx.0; Wed, 14 Apr 2021 07:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+GL0bccGhF91/pU0CPQ6qtX8Mn4OD4Tg1yHw5xduEWU=; b=tnH66VIyebcluU9CPeDU5Hedp3SS10cqLRjieIC4ZenpTzwFHHmNes1RW8/ano6Xaw zIjNTpgh2k3wLxCkpZLnKyEJ8PnyTUFU8OB5Y3ljllMjMnRqumeD6G5HraKIh+pzvENs 31pBkbnxvZBaIIIvlZEQi4Rv74ZZD3tQbFuWCIs0YcYagtu3QEGC5VLMxXKqcUh5UPKZ fjFctkoZRwSzGvUR6ZKhDUPGLKr0djtj9akmrdTiLw61YOG8VV0OC2vJuC9Ja8xngNd1 8SD+NoIcTqpyWxd6Hpsf0OL480p/in32zNYzXoq2zkcaUXAK+SA4iqvZ7hZvmpKTMlnb rDvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=+GL0bccGhF91/pU0CPQ6qtX8Mn4OD4Tg1yHw5xduEWU=; b=BkTyn3mjpIcEJ9qQU4zw7qpqETQcT6u58MBIvLQtVWUiv1bTT7HyvlnvaUO3nsU9WW rJpAG2UZffBSpsMurnnv4SoRLzRakVXUt7+afy9NkB4YmtYXxWIksfA1Mijhz+pd4APW yXOz3mYpvD6U0WtjBMvGFEaQFKa+NppXzIeP+m+jgXLL9uttzQufP2E2XkCmkOm+vQG3 SjwA4ojvU0HMJYRePiiPRNNGWuATeD/W9Nh13aV0zWUc+Ysgks+w91R2m+HY66EBp2a2 xiVm31dRKLsfT96x2r5eD1ijGOcswvzt9UYDUdJ7kTqmB0JuPqN11gQX0XUJ4viutVeR /XHA== X-Gm-Message-State: AOAM533KzsgKyd9+DiDyiA2vlzU+aFMD/DS1aw3OXmWkNx2OccFHvV44 7vnzUrPJKrGj3YWtQBz6/nbZyNXAWuGMrirx X-Received: by 2002:a17:906:5902:: with SMTP id h2mr37444466ejq.416.1618408976154; Wed, 14 Apr 2021 07:02:56 -0700 (PDT) Received: from eldamar (80-218-24-251.dclient.hispeed.ch. [80.218.24.251]) by smtp.gmail.com with ESMTPSA id b22sm11618323edv.96.2021.04.14.07.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Apr 2021 07:02:55 -0700 (PDT) Sender: Salvatore Bonaccorso Date: Wed, 14 Apr 2021 16:02:54 +0200 From: Salvatore Bonaccorso To: Alessandro Grassi , 986561@bugs.debian.org, Ioan-Adrian Ratiu , Benjamin Tissoires , Jiri Kosina Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Bug#986561: linux: Regression in drivers/hid/hid-dr.c causing horizontal D-pad to malfunction on SNES joystick Message-ID: References: <161779964431.889220.2857033195611862828.reportbug@malacoda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <161779964431.889220.2857033195611862828.reportbug@malacoda> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ioan-Adrian, On Wed, Apr 07, 2021 at 02:47:24PM +0200, Alessandro Grassi wrote: > Source: linux > Severity: normal > Tags: upstream > X-Debbugs-Cc: alessandro@aggro.it > > Greetings, > > I am encountering the issue described in this thread[1], using a gamepad identified as "DragonRise" with USB ID 0079:0011. > > The joypad works as intended except for the D-pad: up and down are detected in jstest (though misinterpreted: the input graph shows the points in the left up/down corners instead of the center), the left and right buttons are completely ignored. > > Running 'input-events' shows events 0/127 and 255/127 on up and down respectively, nothing at all on left and right. > > I was able to identify that the misbehaviour was caused by this commit[2] on the kernel source tree. To determine this I have rebuilt the Debian kernel using hid-dr.c from the previous commit[3] and loaded hid-dr.ko manually, with which the gamepad worked as intended. I have replaced the file again with the one from the breaking commit iself ([2]) and the behaviour was again broken. > > Furthermore, to confirm that that was the breaking commit, I have commented line 315 (the input mapping one in the struct) from the current Debian source tree and rebuilt it, the joypad works as it should. > > Regards, > Alessandro > > [1]: https://retropie.org.uk/forum/topic/25657/controler-issue-no-left-and-right-not-working-at-all > [2]: https://github.com/torvalds/linux/commit/e15944099870f374ca7efc62f98cf23ba272ef43 > [3]: https://github.com/torvalds/linux/commit/313726cad3b68039c8e4dcad5a2840a0d375678c A user in Debian reported that e15944099870 ("HID: hid-dr: add input mapping for axis selection") introduced a regression, described above. Does this ring some bell to you? Regards, Salvatore