Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4877388pjb; Mon, 27 Jul 2020 07:24:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz51aIc3SWhNSvYbLhehxu+9MOGthjP2KUptjN2+TKQC4QGnVVdeCBcKXwMiSCpQResD6kA X-Received: by 2002:a17:906:f757:: with SMTP id jp23mr3842677ejb.297.1595859879152; Mon, 27 Jul 2020 07:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859879; cv=none; d=google.com; s=arc-20160816; b=N3BImPRUUyWT8WDLAY/1AqUDegJlaELw0usyoi4fefwPWLBYraqDLKQuHw2h3uo/qj 6oVVhaPihRoVq1iDXirxP8e+5GPuXB2HHMWoRFlGvlEcVps6P05hmb2K61rky9u+qQuD xsAB2ootDEDJc3syewf2kvbUQIDlabfq3DfNK23Z1o6KIdyooe4IdcVyx2Jmc/ZZwVlJ 5blMGsG4DKQ05ZSRGrz4c+9kkcCjY6iF3JDxJj1K0jCmd3l4VLtIsnwWRVwO22Ru1UxB XSkuA/HQGk5YvLSTNyVJG9B6pWjE3FQToWLWr+pZ6IFasYAEf8dlPfh33DucqBOKgZXI 5U/w== 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:dkim-signature; bh=2bJw6ipeImU4rk97OSHF5UI7OszUrLxxvJij1wWRzwU=; b=c9Cvi526K87lafCPanLUxyn39LfkRyqdtPl6PVV14iMjMQPtq3xBSOEXmIjoOEpclt Rrrh6ZOHsJpsyjOnbzsvx4k44jGVgTtTnOL1jR1AJEUy5XKHPKsME7MpEonFEhqfufEG 33VkI7KgZME95h0owKyyW30w58Yv8c5uijYssIO//lCRi+Wx23SWiYs/d6RuAlqALG7c Hf8ITS1QHaK/noTnN7tVFezaNNkMX7lQOravYByoRagi8N7dly5bFvicmhhAMKt+oR5H W21oElPIXoRpTZkqF75J3gRV04j+dDKMUJNx8NCV/4wNLtAS18D/5V6oGFd0CsJMcdqA o6gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=efL7B7GK; 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 i17si5388758ejk.745.2020.07.27.07.24.16; Mon, 27 Jul 2020 07:24:39 -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=@kernel.org header.s=default header.b=efL7B7GK; 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 S1731987AbgG0OW5 (ORCPT + 99 others); Mon, 27 Jul 2020 10:22:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:51976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731961AbgG0OWz (ORCPT ); Mon, 27 Jul 2020 10:22:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D19472070A; Mon, 27 Jul 2020 14:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859775; bh=K/QnzBnxSz8nRtmvwhBj2GIp+N4PtdWh0qolEym6wG4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=efL7B7GKO/trxLOncScPXlQOK0OfB1/7c/HQfVoxVM3NgNs9elqWPo7HyRwsyN9V3 9ABu8O2SO3ivu+HbGHJffE8w3zX/cju3SYhUFPky4euxf17d8y4n6IZCKUtsIJqUBs XxIRwuE8R6MU0HixYzFRhVZ41+Pn/p43T8dDK8yo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Caiyuan Xie , Jiri Kosina , Sasha Levin Subject: [PATCH 5.7 101/179] HID: alps: support devices with report id 2 Date: Mon, 27 Jul 2020 16:04:36 +0200 Message-Id: <20200727134937.573191176@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Caiyuan Xie [ Upstream commit aa3c439c144f0a465ed1f28f11c772886fb02b35 ] Add support for devices which that have reports with id == 2 Signed-off-by: Caiyuan Xie Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-alps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c index b2ad319a74b9a..d33f5abc8f64d 100644 --- a/drivers/hid/hid-alps.c +++ b/drivers/hid/hid-alps.c @@ -25,6 +25,7 @@ #define U1_MOUSE_REPORT_ID 0x01 /* Mouse data ReportID */ #define U1_ABSOLUTE_REPORT_ID 0x03 /* Absolute data ReportID */ +#define U1_ABSOLUTE_REPORT_ID_SECD 0x02 /* FW-PTP Absolute data ReportID */ #define U1_FEATURE_REPORT_ID 0x05 /* Feature ReportID */ #define U1_SP_ABSOLUTE_REPORT_ID 0x06 /* Feature ReportID */ @@ -368,6 +369,7 @@ static int u1_raw_event(struct alps_dev *hdata, u8 *data, int size) case U1_FEATURE_REPORT_ID: break; case U1_ABSOLUTE_REPORT_ID: + case U1_ABSOLUTE_REPORT_ID_SECD: for (i = 0; i < hdata->max_fingers; i++) { u8 *contact = &data[i * 5]; -- 2.25.1