Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp213561ybh; Mon, 20 Jul 2020 14:46:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHxEmdOfcQiKrV3KFiTb8dFKz6q7x/7wl/a32Zuq8BHNwAXs0Yw0M+964pvXqOW6NBaOWM X-Received: by 2002:a05:6402:1246:: with SMTP id l6mr23517290edw.224.1595281578932; Mon, 20 Jul 2020 14:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595281578; cv=none; d=google.com; s=arc-20160816; b=tLgO6CWRjDSq6OWDkayMI6x7NDAODWaleU5wvbdD1yWtnKVBTN3vIQPGY1Azv6WleK azwQu/W1TvT1ofUsR4NviDh1dc/KuR+GQCRVdygoNQtDWaB/RXFiCy00ABh6I7MeRdK6 oB7jhlti0yqn+Et9GWitedPs+oPg/lwLdT0lVZBoOfFmlezTLWszSMn1yqixLZ8JMCYs mitU/KtI7ydHYoheHINBgIdDQWpcALwiB6j9sBuv4fUyJLmtlbjhQwGdShaLvD/4qJTz A5qUDHLmGPzsdtmFb3rUPKC5wJLx08gkdlZhvN6/70+78sQwOkXHxg1GjX20g2BhYwHL QZOQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=epSRpEqSfmmSce5BCQG6vZeUJGyKodOBburJf7TvGqc=; b=O3pFF2dDTi8wtPicWseVQgM89BQrVJDoDY04ot6jjiqTS+EMWi3zhbVtm+UNXMmilv Ykv46Z1NUiX5hOL8rHCksv6rG/dOE4gzW52VSXIjjpSR1yXs7kPHMzUGyuMgUlZGqd3d /tQWggskKUXkGpxZHqHMne0gLhRc+kjYo16V9ATvus84vyt34uTrcKg1xBF7Le7Ojc1C DF1zRoG96a0N/pnAnNy9/6fiI0Inm++Fj4pcfF8VLjF9evGK1GbaNLSEPqflouas60X4 6a69bIjMNeZmO5n11ZsorIL+GgVjA0TDfbVwfpOSoG9UsLUlux0RuvzF/tfACkeC3V7J 3Ytg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v6g8Cqaw; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k10si12301162ejr.155.2020.07.20.14.45.55; Mon, 20 Jul 2020 14:46:18 -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=v6g8Cqaw; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728869AbgGTVme (ORCPT + 99 others); Mon, 20 Jul 2020 17:42:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:57798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728282AbgGTViy (ORCPT ); Mon, 20 Jul 2020 17:38:54 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4665B22C9D; Mon, 20 Jul 2020 21:38:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595281134; bh=66bg3+WNh4NSxqZznyJHZ6nazNhXZHVobYkVRGnUTSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v6g8Cqawi02f2c5k9wteAIfxX9pLxU0VI1RtVwBRCjWNodcDeawN0pEgWT5CQYXoj +ECwH6AyHtNeekyqkYCIVP9a45MqcIL0a/1ouBpFkcp0HVm6R2o4PwEjEfbbV8fdb6 ZC7Yhcbj837U2guEDpV6z39MMhh7OlT3WLEVD7cY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Caiyuan Xie , Jiri Kosina , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 02/19] HID: alps: support devices with report id 2 Date: Mon, 20 Jul 2020 17:38:33 -0400 Message-Id: <20200720213851.407715-2-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200720213851.407715-1-sashal@kernel.org> References: <20200720213851.407715-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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