Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2503509pxj; Mon, 10 May 2021 04:42:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL+IJJS5drQ9loRrdLAKLfxZS10sHdmmnT1SfhSmrzkEMzCBveVLYmtcAuBC1kI7yDMMpj X-Received: by 2002:a17:906:91d3:: with SMTP id b19mr25374198ejx.242.1620646936838; Mon, 10 May 2021 04:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620646936; cv=none; d=google.com; s=arc-20160816; b=OKOWp9iEROY5YrkjEExd1h8LFeyhse74HNoU9dOKG9kZVrW7sLC8pI6BN7yCmdi0nq /uSo0RCkkWebOyEXHw9HThNf1rbf/afNe8kF5gwLjXKadhYsHkLRDyYGFzwc27ReIHTv 4ipnJ7V2jBY8AU6NiYpPBC91k2jnkUUAZBdzED1hNJNzC57qgN9X8dThNhRa9s6fUnqZ mvNd2zbuoLo/gaZJYKhV/7Bnodh7dvfxZ2Qq3RLwNaBg3f1DF7Y/Z77hMsvsoV3Z+mg7 x3X2w7wWUFlUCJdrbp8OAeYyuMNO1wZavngVealSKDycdjmRurqvmZJc1phtnO8m5++/ uybw== 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=pL5tvTQzrl1XxpGWmnqvRwO2s9aOf0vrU94x/gbZbq4=; b=Chj0GIjqPzXLHJKIDeCH/JOd9MItPohmj9l8/8ULLibh0iK04Xv0MYSkyL5/AZp15J 3qjidXbhTnNRXwXNnRSZrTL9a0j2y01y2xz4hbGCDUcOYYdB6V9EycdTKdLvINP3t6XP hgvMD9qRnzjimwUaodReFyYTdp09TqdvaQaYxdcz7+Jog6xtH2tshslh3utUD/xlcbnX 9T3rrs/F8CGEt+opw3WxeDB0FYUCd3G9MmI7DuEwxRjHMFHUgfeq8Z1h1yo214xsNtAx OeufY6OXja2zW/8L7ljQ/bb6N2m8fS+6mwE7HUg0vdmrPsueNqwnAMlK3f3fQbV2hXNq XyVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Zh7gU/Gn"; 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 i6si13522256edu.313.2021.05.10.04.41.53; Mon, 10 May 2021 04:42:16 -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="Zh7gU/Gn"; 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 S241021AbhEJLhY (ORCPT + 99 others); Mon, 10 May 2021 07:37:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:42198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233648AbhEJKzF (ORCPT ); Mon, 10 May 2021 06:55:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3652261972; Mon, 10 May 2021 10:42:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643330; bh=YucLfOKQ5QiviNoTGIjV6vunvvQ44u9yba2IfMpEblU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zh7gU/GnGKKUK2YkVutXjLFCMmIqYGBaaYrFq3rMM2XKTCfpn2ytdZF3JdKqYvOZo 6X1jaS7xCgrPlGdYQ3jAH+ftHQPWazGeDqc+o8njRYvv3VUX1L+sx5dUgHfAaG4YEr rGAfKvphFx1bempOiLALygRNMI2m+sXUznB87hWk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hansem Ro , Dmitry Torokhov Subject: [PATCH 5.10 236/299] Input: ili210x - add missing negation for touch indication on ili210x Date: Mon, 10 May 2021 12:20:33 +0200 Message-Id: <20210510102012.753629610@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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: Hansem Ro commit ac05a8a927e5a1027592d8f98510a511dadeed14 upstream. This adds the negation needed for proper finger detection on Ilitek ili2107/ili210x. This fixes polling issues (on Amazon Kindle Fire) caused by returning false for the cooresponding finger on the touchscreen. Signed-off-by: Hansem Ro Fixes: e3559442afd2a ("ili210x - rework the touchscreen sample processing") Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/touchscreen/ili210x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/input/touchscreen/ili210x.c +++ b/drivers/input/touchscreen/ili210x.c @@ -87,7 +87,7 @@ static bool ili210x_touchdata_to_coords( unsigned int *x, unsigned int *y, unsigned int *z) { - if (touchdata[0] & BIT(finger)) + if (!(touchdata[0] & BIT(finger))) return false; *x = get_unaligned_be16(touchdata + 1 + (finger * 4) + 0);