Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp744151imm; Thu, 13 Sep 2018 07:08:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYvL6m1zatcZBJGQeOg7dNdIP7Dsa08OJhJiyz4cj60U2XfmRzgT4q9r2F5kQSsg3xP04Ll X-Received: by 2002:a17:902:1001:: with SMTP id b1-v6mr7504023pla.155.1536847699700; Thu, 13 Sep 2018 07:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847699; cv=none; d=google.com; s=arc-20160816; b=FnslIXEUt2J4Hfj21Um/5iw6sjpuiorUvA36tN4hv2jMJ4EWiCuTOqHLM44gP25lqO 8CrvcdYqhkkmAj55iaufwpfbORC9TnSndj/NH9+8vZq9oAGpHGRM0wBRRlaVbXweQuvz DyU7BfVR/kb4C5+bnPz2rSA8VaM8B55hEXt78xqQabfruYLgoyZuBYhWv5sElqE1Av7K is3UxgjFFA/ccXsmVuKzR5ynfQTQurd8b3aYc4ZC/pVS2k4Bdo+287+Aq+2xqn9sg2VW 0OV84kX2ifAZhMuM5wz9NbyQvla4hmdp8+IcYtuMID4e5RTwtxKfqySf6hIVbP00sRGC yZZw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=ziFh9c1I1efNP+qVjCKSq62V6djQlDRS9KXdOsHfUGw=; b=peblRGRVlN1WKau+O8FoR43nqAU+T1frObDnyjVaYcexZ5CX0ZwjslABg6aR/HUiuz eRt2YXCzwYeUJ8KXaeIq2DAdv6Nj56lx3k0lkhiev5DuPuiMdj7sSY+6CHDHd7OhRhV7 yIXt8vzd1qgEH2WxslRCFHj5JgDgU5BjYxdOgHKzoHYXRDa4At8FHJbfHLZuFtoABF5g IdiyMwEmYzqKgFBp2W9/3uBjXUVGw4DuF62WsL5zHQJuzClxiyWt7SsXLxL20/vXmNIv t32TYl9FMeHQ2tl8WDvOOeGLWDkBuJGHg7GelytrrECtcgxGb4kxhRTPpkZ8Zvr6dsZD W1PA== 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 g185-v6si3772280pgc.151.2018.09.13.07.08.02; Thu, 13 Sep 2018 07:08:19 -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 S1732134AbeIMTQN (ORCPT + 99 others); Thu, 13 Sep 2018 15:16:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35614 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729120AbeIMTQM (ORCPT ); Thu, 13 Sep 2018 15:16:12 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id BB48AD3A; Thu, 13 Sep 2018 14:06:32 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robert Munteanu , Jiri Kosina Subject: [PATCH 4.18 196/197] HID: redragon: fix num lock and caps lock LEDs Date: Thu, 13 Sep 2018 15:32:25 +0200 Message-Id: <20180913131849.395774512@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Robert Munteanu commit dc9b8e85ed95cbe7e3ad0eabb5b48d617bbc365e upstream. The redragon asura keyboard registers two input devices. The initial commit 85455dd906d5 ("HID: redragon: Fix modifier keys for Redragon Asura Keyboard") considered this an error and prevented one of the devices from registering. However, once this is done the num lock and caps lock leds no longer toggle on and off, although the key functionality is not affected. This commit removes the code that prevents the input device registration and restores the num lock and caps lock LEDs. Fixes: 85455dd906d5 ("HID: redragon: Fix modifier keys for Redragon Asura Keyboard") Signed-off-by: Robert Munteanu Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman --- drivers/hid/hid-redragon.c | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) --- a/drivers/hid/hid-redragon.c +++ b/drivers/hid/hid-redragon.c @@ -44,29 +44,6 @@ static __u8 *redragon_report_fixup(struc return rdesc; } -static int redragon_probe(struct hid_device *dev, - const struct hid_device_id *id) -{ - int ret; - - ret = hid_parse(dev); - if (ret) { - hid_err(dev, "parse failed\n"); - 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"); - return ret; - } - - return 0; -} static const struct hid_device_id redragon_devices[] = { {HID_USB_DEVICE(USB_VENDOR_ID_JESS, USB_DEVICE_ID_REDRAGON_ASURA)}, {} @@ -77,8 +54,7 @@ MODULE_DEVICE_TABLE(hid, redragon_device static struct hid_driver redragon_driver = { .name = "redragon", .id_table = redragon_devices, - .report_fixup = redragon_report_fixup, - .probe = redragon_probe + .report_fixup = redragon_report_fixup }; module_hid_driver(redragon_driver);