Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2510638pxj; Mon, 10 May 2021 04:52:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNaEI/vlGieU9lp387E31sVv0w2qv4ehj74m1HppZad5PncmU9kEilu6sGstMtJItPeo2Y X-Received: by 2002:a17:906:36d1:: with SMTP id b17mr26238248ejc.235.1620647579540; Mon, 10 May 2021 04:52:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620647579; cv=none; d=google.com; s=arc-20160816; b=hd5SZF1MZxVyTapCo8ctqtw9mGiRAwygfiynv3rSQe75w6LZkVOnQIVBmtlUx+eEhQ 562Maejta2aJjVbI7T7HETWK92jkyVo7+ABcNmaIKMJFqX4urizMnEKLPMI/AqdgoivW ekUq7LmqIctcd3+LyI18ZGSBsIrSQFO2zYRaJswh+BpPBlyH+5nwuYsxHH6XesQdIsI0 TzP3cGRAwfM1oMJeQz+S06CUtVxwTTIBWbXeGm++XGAhMo+mXmg+Vuf8dHb1UYQYxX2y rUDF2EZC3m9p0SKojHZLVwBU297li1qYJMhmgtNxnf3eenSaOg+i29hcu3WPQrKUtheK pLiQ== 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=JVVo3HKBDdKJ5q23F4HjhRh8bur7yvHcmjU2DD/uV7CNv3WLMmQajTsNz3QcFs2vfW v+zG0Qi2D7FNrf4iqh0ir/MrxQQQ6EGM08JLbBHqCaKK56/3eG3MTk+wLPXpFNUswAXM WG7Uv6U+HxlHaxtWPOiMKRM0qALAN8qdv8TXxqdGbZA5Rk4eW/EooAXQlKtUyx88BMNA 574d+5LmWpPJKuGI8+WuRcqXx2Y9WqsBmQyURnzfJU9vrGhkVdz0ctiGDPdzD3Rf6XBN 4goJj51xbuJLiAm45RL9zthsRUjVVIha+EJz5QuKa0DcGKr30LTLwd3b1RQ1/5FAl2pJ gkdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RPBBjKxw; 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 z5si13152986edc.126.2021.05.10.04.52.33; Mon, 10 May 2021 04:52:59 -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=RPBBjKxw; 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 S232957AbhEJLvt (ORCPT + 99 others); Mon, 10 May 2021 07:51:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:34814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234294AbhEJLCv (ORCPT ); Mon, 10 May 2021 07:02:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1CF7E6142D; Mon, 10 May 2021 10:54:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620644053; bh=YucLfOKQ5QiviNoTGIjV6vunvvQ44u9yba2IfMpEblU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RPBBjKxwYpE/gYFQ1jLGDGGhRNFtAgTnwlqcxfDMvYe+L+puvXrPvBgTcJx03bsX6 Ck4ST1BXuM2T4pdc71hNE+utpqhJ592odrsblbghMozBAHbP8/RGF7A6T0S48cuF3m zG9QxWZ1sDH02X8K8uBgMPfBGFGwkY4PnA8AsWMU= 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.11 268/342] Input: ili210x - add missing negation for touch indication on ili210x Date: Mon, 10 May 2021 12:20:58 +0200 Message-Id: <20210510102018.951520614@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102010.096403571@linuxfoundation.org> References: <20210510102010.096403571@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);