Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3529026pxf; Mon, 15 Mar 2021 11:34:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWlw644XspB0De3OOtBr2t8NmGoYLpjEin1AVMImR2hoN5KoW2KO7y3i/pn2xiiDMI6HsP X-Received: by 2002:a17:906:1b54:: with SMTP id p20mr25104692ejg.307.1615833292852; Mon, 15 Mar 2021 11:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833292; cv=none; d=google.com; s=arc-20160816; b=0CFXybDtoXSAMaZG9Dii/hoxxRmjW02aMMMH3NamERVY13CqX1l+cHuWF677YVxcvL 3isvHno2VPXbNuqtDjpvj0cnA9RACUYAnbO1RyKs4UJ9VY3Ik3A4nEc2e6wSplY7yb2x KgmTVn1q5BPF2p8p9qDHRAcQgpzA+Yo6MbsHWdIELsIDCI28roMvCxmwoWjdwZuwuVFz kPB9ZZ1hP57ZjG7BDeBnNmtyRcuWF/BkkVL6AlYsJHT8ZXemktePOcobtRxtp+8DX55/ FV4Y+Py1kMrExSEIL31bVvNCRmK5AVJ0fwi0Kf5kHoJfQA5TrXoyoBToktaZtU4JtoBw Y4HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tI5D2WRmzQMa4XD8LUPcFIC6ijQdtWbBLRknBRDm9wE=; b=Im5lSQe1zE8HqwWuDVvXoX2jmtiTvu+9Ol8AG2GRss60FS64x8lDUW+XzVlWTNN3Gz p4MKMNtyjp50jbxzNtfggRB67v82PZ9m6BpB9bwFXJtb6ACJmogAC7VnnbsAFaR4M6dq bMHpGtx4eyalsR0ffi+3qAzkf+jecQ+2/wO7GEmdnbCvUdi15Y3frin5DDIYHblrQfS/ AXQD5LROeImOPrtVPKmIQWr0FRT4kgSOXKqoB+FT7rNtkXuopSEiyynNkRdD3f0Ln5Pq drMi/GDG2Bu5APPFS7lTzDZ82pAKqqsyvU6TBafoWNGtO9tnb2tEn5pzDG/ANNSDPs/T HS9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="go/IZsQx"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si1792954eda.74.2021.03.15.11.34.30; Mon, 15 Mar 2021 11:34:52 -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=@linuxfoundation.org header.s=korg header.b="go/IZsQx"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239931AbhCOOrW (ORCPT + 99 others); Mon, 15 Mar 2021 10:47:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:37522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230493AbhCON7L (ORCPT ); Mon, 15 Mar 2021 09:59:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9920F64F26; Mon, 15 Mar 2021 13:58:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816729; bh=XFxMRO3ByBIar4l5dByYkLZmVRksAJ4SHtt1s/yJ/0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=go/IZsQxJ4ktUQ4tjd70IEu/EJET4y4v6E+eKvsDhKRmdQ3QKFpqsYYSGEwgp41Mj 0n5j5rKFt08/+7F8FI2ohWQQIped1P2hwT+qqZdQ3/qhzpjEmy0B77hPHRmvi16MSK hfkiTIlI/OzSsjPvCE8jS5NoIwJg0i7HvVyqyWRQ= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Filipe=20La=C3=ADns?= , Jiri Kosina , Sasha Levin Subject: [PATCH 5.4 072/168] HID: logitech-dj: add support for the new lightspeed connection iteration Date: Mon, 15 Mar 2021 14:55:04 +0100 Message-Id: <20210315135552.741586286@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135550.333963635@linuxfoundation.org> References: <20210315135550.333963635@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Filipe Laíns [ Upstream commit fab3a95654eea01d6b0204995be8b7492a00d001 ] This new connection type is the new iteration of the Lightspeed connection and will probably be used in some of the newer gaming devices. It is currently use in the G Pro X Superlight. This patch should be backported to older versions, as currently the driver will panic when seing the unsupported connection. This isn't an issue when using the receiver that came with the device, as Logitech has been using different PIDs when they change the connection type, but is an issue when using a generic receiver (well, generic Lightspeed receiver), which is the case of the one in the Powerplay mat. Currently, the only generic Ligthspeed receiver we support, and the only one that exists AFAIK, is ther Powerplay. As it stands, the driver will panic when seeing a G Pro X Superlight connected to the Powerplay receiver and won't send any input events to userspace! The kernel will warn about this so the issue should be easy to identify, but it is still very worrying how hard it will fail :( [915977.398471] logitech-djreceiver 0003:046D:C53A.0107: unusable device of type UNKNOWN (0x0f) connected on slot 1 Signed-off-by: Filipe Laíns Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-logitech-dj.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index 86001cfbdb6f..b499ac37dc7b 100644 --- a/drivers/hid/hid-logitech-dj.c +++ b/drivers/hid/hid-logitech-dj.c @@ -995,7 +995,12 @@ static void logi_hidpp_recv_queue_notif(struct hid_device *hdev, workitem.reports_supported |= STD_KEYBOARD; break; case 0x0d: - device_type = "eQUAD Lightspeed 1_1"; + device_type = "eQUAD Lightspeed 1.1"; + logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem); + workitem.reports_supported |= STD_KEYBOARD; + break; + case 0x0f: + device_type = "eQUAD Lightspeed 1.2"; logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem); workitem.reports_supported |= STD_KEYBOARD; break; -- 2.30.1