Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1368933ybj; Thu, 7 May 2020 23:02:29 -0700 (PDT) X-Google-Smtp-Source: APiQypL/mRC4Ro7iaZkDydZlcvrVhf2/OlLbkXF3gKdTjRdGtEMVHNkCSmS+Rqqz7VtHKO4zGV75 X-Received: by 2002:a05:6402:31b6:: with SMTP id dj22mr842341edb.258.1588917748848; Thu, 07 May 2020 23:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588917748; cv=none; d=google.com; s=arc-20160816; b=kA/WSykddmDKX87fQu9AoGwLO1pr3QjQYNMDprbGDlxZYrl30RFYBRZrGLHWzvPhL9 gnuyAhtlBjuwwQFoAiCBXy1l8me2hD32jrMqVOI0i4SgHcNByjz57gYN1upxnCRY39aP PlkSbT5LNIgnC3yYpzcE4ADfqveLCCJ2nQQHPCOzhPdT0KO2NLrp0tiRLjuIDXU3aM4J 95fcFbbjGRFymLKxgPfBeBqYS+hdVbjd2cyxnVNs8DjHQ9Maulp+u1lIo8Um1G5kuUe+ FqICSslvcdPKo0UR3u5g/BIDHr3+5zeNUIL8+nqMji8S0gTHQMgq7dJ8OXbto+/D+7B3 Nj1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=LGhzdrMDnw3ZLx2Ra/f/rXJTbjxVIfLC5QHLYWp0agI=; b=QaI46PSHLyPWbuT30/IXhGrC6U9jpHjYUWWjPuYmpNEXLMioy9upixeXWIIkYvSj3W ZBT/2YIpVSn/LGXArHLevytz6a8p1sq10tNa8nVE1JA8g0mqn/ay/yW0G7ZWD+WNMt2U 8XhCGjXDGa0bHDyVIj70S11oKr3p4vrFwx2THRR9oYz3V8/6NSZAvaG1L798PDzrV4MQ pVgODgivnmV+VATD3YOTjib64iczDpmONmLlApLP3hC7zdXAL1qP2wgonMysd+jrHQWz Tc8lXO6sr5GN9OpoSxWM8KykFlRAQDGM8+id8VDwwt6SJgc3fHsXnVYjDwLHG1UsK/JX N+yg== ARC-Authentication-Results: i=1; mx.google.com; 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 i14si377997ejr.238.2020.05.07.23.02.06; Thu, 07 May 2020 23:02:28 -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; 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 S1727108AbgEHF7y (ORCPT + 99 others); Fri, 8 May 2020 01:59:54 -0400 Received: from esa2.mentor.iphmx.com ([68.232.141.98]:25985 "EHLO esa2.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728267AbgEHF7w (ORCPT ); Fri, 8 May 2020 01:59:52 -0400 IronPort-SDR: STiOOJXeWZKXeRzXPYQLsywoYdlfshIlr1iJMcyYB1B32YPES7Lot90E4DgGR7CtX99hHga401 uoWbFS/m+IpC5ZLCbnS2an+TLQmBOyU5D7KoKXYMsd8e4GOjfMMbzKRmHQZkKJy8WezaaV3iZ3 v+wA2N5T3OtmpWeAoVK1oHXgBHtHp1rP5w44dWEo7Hu1CZuCfgBmHUwCIZHUYjy9sAKPVnwl7s STiC5UXCs4lpH/JVHX4eIKRVZBzYQIMvkYDT0CcAeXjtjKziw+rK1twu2z05C3w+YffJ94/IZE Gjs= X-IronPort-AV: E=Sophos;i="5.73,366,1583222400"; d="scan'208";a="48589144" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 07 May 2020 21:59:51 -0800 IronPort-SDR: rqzIu02eyh5EBRONiywVoH9QD3pw6+rrncbQ77fDMee993IcW/9etuc0XbM11HNwfEUGT018zf 0/fQ58a5RcE/GSIzFyjQsizKubCJe5TB0WsX1KndUOqbf/7suSOevUD1rHNznNYdjepBzWQrpi dnrB7T5vsq+ioh14YfywFJBMqtdSPuNG9IYYYPWL28/UDKE5fRo4Sr3XvPlE7OU+k5NJtftPpc Q8Wenp/TtPDFuCyGDpx0ImKdEsu+g9W4wWF6MHFaWY6Y9GJAuFUz1FYbi131GCQUY6uyCSDHzr RTE= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v11 45/56] Input: atmel_mxt_ts: return error from mxt_process_messages_until_invalid() Date: Thu, 7 May 2020 22:56:45 -0700 Message-ID: <20200508055656.96389-46-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200508055656.96389-1-jiada_wang@mentor.com> References: <20200508055656.96389-1-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dean Jenkins mxt_process_messages_until_invalid() failed to propagate the error code from mxt_read_and_process_messages() so return the error code. Signed-off-by: Dean Jenkins Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index ed850a0bae69..7c530ffac1ba 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -1563,6 +1563,8 @@ static int mxt_process_messages_until_invalid(struct mxt_data *data) /* Read messages until we force an invalid */ do { read = mxt_read_and_process_messages(data, count); + if (read < 0) + return read; if (read < count) return 0; } while (--tries); -- 2.17.1