Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4010298imm; Mon, 30 Jul 2018 07:13:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdAZd9WAfQW8QdC3cJLzxXMB3RWpXXOKAb5cfmsw9XVlsSAJdQmm9PQrruCWRzqP1Htkj3K X-Received: by 2002:a17:902:142:: with SMTP id 60-v6mr16899933plb.330.1532960030324; Mon, 30 Jul 2018 07:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532960030; cv=none; d=google.com; s=arc-20160816; b=YjOdHXfeNG7tiECVZLeuuN1AQQOaEkkN9o9XHF+HS2g/fzwQsiV7PWngjSXLDT9bAB YchEa72CW/OvsqQAfs6jl/q+yU9zqmMMNOrXb09ZDatG3MZbOBRFPFKQ4DkG22GxvPY8 qbVoN0kLQ7b0KT9GHG5UwWYwTltABQjFkVhkWFzfslgZtl3Nn/JtJAB0a7HSy+C+qA5w k504WF6vYoQkZh0jMbkTpXUrxDzuxVIUJ/DQLu6DxC2ivkPvQgeBOq82ykfcBOWRUyaV OktfF3Ro/WZSn9Z3CIww6QCZQGV5qtMmHLGX7fqFvD/03+OSo2rSSbUb8sIkbk3XwRBO FoDQ== 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:mime-version :references:in-reply-to:date:to:from:subject:message-id :arc-authentication-results; bh=II4/8jlhzQ1YgspCSozyjA7OU/BtRh6vcqcT1qpIzIU=; b=JxPWjTBsaYYQb/mJ5JdL8O0sX5/+2kx4WkIng8xb82gIEwGLySq+hW4ElykuuXmKG1 BvfpQJv9xiRWpZUsvAV/p+MlRWsUntcnLIQeMue9yIXbxT7hxilSkVyU9J81EEAzAqDq qr7BIBMp5uQqvOFm/3XFlzKDY7d7rx/KkOBTBO8RIBMUsyioJyF7SaXi+/767gQgqSBl fNCt3Plh7LOO2RQk3WyaJ+M6LyrsFiySim7sjMbeVvwQ35VdOP36nJuUMtUxc2r3G4Cx hb0nY+Q7xnKDTa5XBMrTA4KofsM1KeZFICxuUf6VQigJ0D1IKTju3TzQ9p7QqNKr0RHK oxFw== 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 3-v6si10352664pld.36.2018.07.30.07.13.36; Mon, 30 Jul 2018 07:13:50 -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 S1729099AbeG3PrE (ORCPT + 99 others); Mon, 30 Jul 2018 11:47:04 -0400 Received: from hermes.apache.org ([140.211.11.3]:37587 "HELO mail.apache.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726740AbeG3PrE (ORCPT ); Mon, 30 Jul 2018 11:47:04 -0400 X-Greylist: delayed 402 seconds by postgrey-1.27 at vger.kernel.org; Mon, 30 Jul 2018 11:47:04 EDT Received: (qmail 56131 invoked by uid 99); 30 Jul 2018 14:05:13 -0000 Received: from mail-relay.apache.org (HELO mailrelay2-lw-us.apache.org) (207.244.88.137) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2018 14:05:13 +0000 Received: from rombert.eur.adobe.com (unknown [192.147.117.11]) by mailrelay2-lw-us.apache.org (ASF Mail Server at mailrelay2-lw-us.apache.org) with ESMTPSA id 5234C23D; Mon, 30 Jul 2018 14:05:11 +0000 (UTC) Message-ID: <6330995a9313ade9196cadb2e3696d53d4ef9aa8.camel@apache.org> Subject: Re: [PATCH 1/2] HID: redragon: Fix regression in non-Redragon keyboard due to this new driver From: Robert Munteanu To: John S Gruber , Jiri Kosina , linux-input@vger.kernel.org, benjamin.tissoires@redhat.com, dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org Date: Mon, 30 Jul 2018 16:05:09 +0200 In-Reply-To: References: <1532807605-26023-1-git-send-email-JohnSGruber@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.4 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, On Sat, 2018-07-28 at 15:53 -0400, John S Gruber wrote: > The Redragon keyboard uses the second device being presented, but > other > devices with the same vendor_id/device_id pair (0x0c45:760b) use the > first. > Don't cause its deletion. Problem introduced in commit 85455dd906d5 > ("HID: redragon: Fix modifier keys for Redragon Asura Keyboard") > > Fixes: 85455dd906d5 > Signed-off-by: John S Gruber > --- > drivers/hid/hid-redragon.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/hid/hid-redragon.c b/drivers/hid/hid-redragon.c > index daf5957..85a5fbb 100644 > --- a/drivers/hid/hid-redragon.c > +++ b/drivers/hid/hid-redragon.c > @@ -55,10 +55,6 @@ static int redragon_probe(struct hid_device *dev, > return ret; > } > > - /* do not register unused input device */ > - if (dev->maxapplication == 1) > - return 0; > - > ret = hid_hw_start(dev, HID_CONNECT_DEFAULT); > if (ret) { > hid_err(dev, "hw start failed\n"); As I mentioned, this is already fixed by dc9b8e85ed95cbe7e3ad0eabb5b48d617bbc365e, scheduled for 4.19, and I suggest that we instead add that one to 4.18. The explanation is that the block you deleted was the whole reason for adding the redragon_probe function, so the changes are largely equivalent. Thanks, Robert