From patchwork Tue Mar 10 13:17:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Mastykin X-Patchwork-Id: 208104 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86406C18E5A for ; Tue, 10 Mar 2020 14:17:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6612D205C9 for ; Tue, 10 Mar 2020 14:17:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727146AbgCJORQ (ORCPT ); Tue, 10 Mar 2020 10:17:16 -0400 Received: from mail.astralinux.ru ([217.74.38.120]:50968 "EHLO astralinux.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727280AbgCJORQ (ORCPT ); Tue, 10 Mar 2020 10:17:16 -0400 X-Greylist: delayed 3603 seconds by postgrey-1.27 at vger.kernel.org; Tue, 10 Mar 2020 10:17:13 EDT Received: from [46.148.196.138] (HELO mastykin.cct.rbt) by astralinux.ru (CommuniGate Pro SMTP 6.2.7) with ESMTPS id 1749906; Tue, 10 Mar 2020 16:15:02 +0300 From: Dmitry Mastykin To: Dmitry Torokhov , Bastien Nocera , Hans de Goede Cc: linux-input@vger.kernel.org, Dmitry Mastykin Subject: [PATCH 2/2] Input: goodix - Ignore spurious interrupts Date: Tue, 10 Mar 2020 16:17:05 +0300 Message-Id: <20200310131705.13516-2-dmastykin@astralinux.ru> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200310131705.13516-1-dmastykin@astralinux.ru> References: <20200310131705.13516-1-dmastykin@astralinux.ru> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Signed-off-by: Dmitry Mastykin --- drivers/input/touchscreen/goodix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index 6a7ecc6..7f8ad6d 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -329,7 +329,7 @@ static int goodix_ts_read_input_report(struct goodix_ts_data *ts, u8 *data) * The Goodix panel will send spurious interrupts after a * 'finger up' event, which will always cause a timeout. */ - return 0; + return -ENOMSG; } static void goodix_ts_report_touch_8b(struct goodix_ts_data *ts, u8 *coor_data)