Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2265042imm; Sat, 28 Jul 2018 12:55:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeOcjeT7hbPztbHTRQQuO3cLfSVdt5bSfIh6LsThJvqzbIaaN2QHzUgDoWnvJiQPaR53prL X-Received: by 2002:a17:902:1703:: with SMTP id i3-v6mr10559435pli.263.1532807740633; Sat, 28 Jul 2018 12:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532807740; cv=none; d=google.com; s=arc-20160816; b=iv8SCM6CNIyHlK4AMStIvhEcpx5VcrfMAYz1j0e7hwbX4N0u7bZb1ujzbxZuRGWUbo qWmgd2uoDc1gI929Fq7XeEkcNJ9/HjQU6tl6aGggwyfJ01KaBtnvriyL7LFRqTV+BOFN G9W0ULxG3t25NtBlBAJ0WcC2xm71fuJRFx1iWH/tY+DCFX9cOuYqHcut9N83LHvXGVSx C8PILXCfb+nY+9RwK/A0QUYvM/yxB18xy0MGbk8mlUPAxC38TTggLtg5lRefbZp+7hqJ tn4R8Pw9ey+RMTvUSKO4MiQgMzYmcLaG/qn/YY06dCVp1aS9DJXaDV/aqTwBUNlSzYTl qBWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:references :in-reply-to:from:mime-version:dkim-signature :arc-authentication-results; bh=KkAbw+Mw09t7cvlydwjLaLcheYiualng8Isu+fZqHhs=; b=LkfPY/oG03oCC+Go9umagSMsnxhxhgme7+va+MznxTQZd0MKw0xEtSeFR+8Wqz91Uh FDx4cjw0yDrOS6XBlx+n2lr6iaZOee8g40fUb6vaXweq2p6E/kSYFIh/PaeoU60aq4Gc jjDPRHjgUKmhSmOiGaMH5GgX/+3k8sEljOoFHP1L+ieOMUXlF3Lq//hxJODMMHvlWonD yqpVHr0yN55CYDTIF8mG6cYMoiFxAqLsoI6h6U850wuBjCM8z2RcZF8KyM6gQLsb5EZm 6NHCGGaXzAUyzA+MTzOuRZEnI+KQYwvnHimlJ81ux0NDxlwJ8rOSVn2KjDwGJE2U8nQ7 xZYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cq9EouqH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e20-v6si7714164pfm.177.2018.07.28.12.55.12; Sat, 28 Jul 2018 12:55:40 -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=@gmail.com header.s=20161025 header.b=cq9EouqH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730639AbeG1VV0 (ORCPT + 99 others); Sat, 28 Jul 2018 17:21:26 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:46013 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730409AbeG1VVZ (ORCPT ); Sat, 28 Jul 2018 17:21:25 -0400 Received: by mail-oi0-f65.google.com with SMTP id q11-v6so14831493oic.12; Sat, 28 Jul 2018 12:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:in-reply-to:references:date:message-id:subject:to; bh=KkAbw+Mw09t7cvlydwjLaLcheYiualng8Isu+fZqHhs=; b=cq9EouqHSVpxSwdgaHg1rQa2D2/CG0RirA4IWRTZvji7k/FXSY2vCf4oV9qCiVBCqr x60OEyKUk2inPREDBA2vqnRfHoqVoG18ldb1HTAV6izPAPXyNKqfhflWEM/J1kOSS1T4 rnzBm+ivO3ORCsW9Ucpr5L53iFQ9ooXC14K7q4gjjuRc5PW/2a0zKWKKNBFwuW1W008H sP4x6hoDPSye7j01VasC1Zi26Al7hCYxLG9k26D/9sURvXvXexAVGaS6Lb6n2IIieSAg axHc6HlPw+emvc1f4YjNqIPZH/3MsxEf8+46JAEfBPxNo74bR/o7o+o0L7KnqvTsDVpA NQpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:in-reply-to:references:date :message-id:subject:to; bh=KkAbw+Mw09t7cvlydwjLaLcheYiualng8Isu+fZqHhs=; b=ZbvgoYQTerhu+m8YC6TlEa9w3rvkAHH4s1mITmRphWLhIQenhdeuXRoS4xgJ1K9s3P rxoOMACO6H9TqdafGnnx6XYjoAsHY/+Ez2jvmv8wZopGZEY2J0G4HMsTjtDtYBgP9Nlg ixo7YN4/iLzaXRv8ws+3l1yH2xjCjHysOrih3MaXK8soYWd/Qv4Ix9/QC8R3UaCBLK7i Gv4y4iILvY2XKv1DsK5T+s/e/xtYARfmM8lcUkohpB72f4HHx0xlEgUJi6PJjmU5nSnT hQCH9/5bmDdDq9dVT0XLqAS2b8Hns+HPf/CwwTPk7kVn+i/DXv2BM6FWSFviHvuf0uo2 Wm/A== X-Gm-Message-State: AOUpUlGG0hWxhKCvHhcx+y++SJYlVQpyvgHEa7mvha0VTo1etK6vNnhh czwn4g8cUjRzV0Zr74/9WWgDODbPcMOaA/UvVdhHYk2q MIME-Version: 1.0 X-Received: by 2002:aca:5c85:: with SMTP id q127-v6mr12518890oib.127.1532807629701; Sat, 28 Jul 2018 12:53:49 -0700 (PDT) Received: from 329980741037 named unknown by gmailapi.google.com with HTTPREST; Sat, 28 Jul 2018 15:53:49 -0400 From: John S Gruber X-Mailer: git-send-email 1.9.1 In-Reply-To: <1532807605-26023-1-git-send-email-JohnSGruber@gmail.com> References: <1532807605-26023-1-git-send-email-JohnSGruber@gmail.com> Date: Sat, 28 Jul 2018 15:53:49 -0400 Message-ID: Subject: [PATCH 1/2] HID: redragon: Fix regression in non-Redragon keyboard due to this new driver To: Jiri Kosina , Robert Munteanu , linux-input@vger.kernel.org, benjamin.tissoires@redhat.com, dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org, JohnSGruber@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"); -- 1.9.1