Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4868737pjb; Mon, 27 Jul 2020 07:13:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0qg9JHl1BR9MbpSz8GgDKZ401MCBYsSnAh/Ck7iGOnCTXaBYc2NG+wmvOFLy/nsA92m1v X-Received: by 2002:aa7:da8d:: with SMTP id q13mr21566098eds.339.1595859222122; Mon, 27 Jul 2020 07:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859222; cv=none; d=google.com; s=arc-20160816; b=DyMUkR+8+tf1vusgUUrAC+A4Ita4WTkjK77Oyyne7SaDd6sUHdtUqxNhxBlmBbyDUm yqoAycrtPo5k/fPPrAxp27L4tP0fPZUL4o7vm/mc1ASR5dMOSBVb1H6x9+3a6ZekQBV4 i4SCgh1oraX7UbjoibQ+RD6GpYNbZ6UQjOWffkPbCoQzEtJQ5a/LYmlyjGOzi6DG0czS qCMdTkuI+MaNGa9IFpp1Y4a/h9qwzZXfUIt6zzvyPVDv9ycfplb0gIBQAUWQCp2hT9Ol ryiFu59Da2BGdusIiTRCOLZgCJpF1wwwj8rZ5WPoYBSrzTq3OSXe78V/lU4GrXgzxL0I 5rFw== 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=epSRpEqSfmmSce5BCQG6vZeUJGyKodOBburJf7TvGqc=; b=HRnOUrP1bcVD5s+h/Ze8pZUtdDjqraK+cWLWzQKJe0fOCjIzqA+31s/02MHtggROYA 3tOlqaREfPdt7QDI37NFdArBctErXA/bK619B8WSywgtvWvFhXrsfFR/tWbBMvIsZ8va oJOk0oC9OUM3C7AOrm+SRhNFy7CUCcyHfjiP9KM8iqWWL8pLQTNv/sDkHOaAF8f0Iogh If/IEjVS5hQ+jXDble042DjMujroPuXIOtk2PjmZNWG9HsFrip09+J4aNZOckflYQ0Q4 Wb5V136g7Oh3vRIh8UrmCu64KK/XDK9eKdER3HSmGR7+SDp3D2uW7wuTuswrMX+nOCiS uDTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=o8diH8Eq; 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 h21si5845466edw.233.2020.07.27.07.13.19; Mon, 27 Jul 2020 07:13:42 -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=o8diH8Eq; 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 S1729282AbgG0OKn (ORCPT + 99 others); Mon, 27 Jul 2020 10:10:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:33742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729898AbgG0OKk (ORCPT ); Mon, 27 Jul 2020 10:10:40 -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 9FA4E2083E; Mon, 27 Jul 2020 14:10:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859040; bh=66bg3+WNh4NSxqZznyJHZ6nazNhXZHVobYkVRGnUTSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o8diH8EqYlYHtLYNbQlExKidF/wAdgASPcLHNWgU0PdK5muJYEQn31smoiZAEI639 iSB509oQfCxG7FRjtB1sPpsHLk6O4wQVrKvOHz5l9cUTy6c2fRNOL/HsjD5V9VN1Xe 1zNJWEQz8OynMGMmlAsCGT+smzHPzSdTFEwehJl8= 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 4.19 44/86] HID: alps: support devices with report id 2 Date: Mon, 27 Jul 2020 16:04:18 +0200 Message-Id: <20200727134916.637405862@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134914.312934924@linuxfoundation.org> References: <20200727134914.312934924@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 3489f0af7409c..f4cf541d13e08 100644 --- a/drivers/hid/hid-alps.c +++ b/drivers/hid/hid-alps.c @@ -29,6 +29,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 */ @@ -372,6 +373,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