Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3366445ybb; Tue, 31 Mar 2020 03:54:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs8Xuk54d3Uy4cw7kMwbSqiJ+mNKG1OpagNy71hSSfM+hIYddhM4Ce8m1zbhK3WgXbhIler X-Received: by 2002:aca:b756:: with SMTP id h83mr1672955oif.4.1585652085981; Tue, 31 Mar 2020 03:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585652085; cv=none; d=google.com; s=arc-20160816; b=j99xBhPFYBINCpfqjNtWQfwu0GuOhBFu/WCec/BkBYK5j8c4ncArCGd+UATcTH1nWq 2cWwKyzCmtHQbDLWJx9KVubNSnjRD5AO7t8iqVXTW0Z7Ml5z5mFyhaqlXrcvJJQuf1Lw HypHQREFPRvoGsEZNVlifqYrOgP3K78jNTcn/3l8dAHv9ybv6b4lpjyGoq8bzL3lLr45 QPvBCjCR021S9C5oT2tE36FXoPI8InPPqYH+dx7qnrwcTYW3O1sXEEjQwvf9RSqIjWVl +W+1hGYSIPJlJcT/tsZqLuMbBwfX14X56U0880TeSe8ysfhtH0FRGfRVKE9Beh4JXfqG F4Bw== 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=2vJLyHpxa6ZAI3DKcjim5eR9w6jg9fxOWPaAcUjOerc=; b=Y1BFVQ9KOMqAfmRMdXw3FHnBweydBK8iH6PtyEJQiwuOSdaDJrKS+xeXDRiIu2/cTI MoYv6M2RSQijU/Bl9zd534wCna35O0Nb6i2ffPL+JoLbToMEiPtX4OgHA+sMj2owdQqm TEmJsawAVWZ1mGBCVINrDjDorAXnjlrspUt0eGuTiQ50jEmXk12xvUVYGIXjTn0qSabY IPGSDiOYgdaO/1koIoLc/c+FBRJKPkez38kbAjPufQ/FtwvBu9nZn953d0ZPzE0N0P2R iHdr64GxEYsCGBUIsBn+Suo01yyVpnIRJomtboRV509VdXL9CePWWAdmwk3jJ6r0KgRm 5aPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k193si6652559oih.78.2020.03.31.03.54.33; Tue, 31 Mar 2020 03:54:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730560AbgCaKxo (ORCPT + 99 others); Tue, 31 Mar 2020 06:53:44 -0400 Received: from esa4.mentor.iphmx.com ([68.232.137.252]:43597 "EHLO esa4.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730946AbgCaKxm (ORCPT ); Tue, 31 Mar 2020 06:53:42 -0400 IronPort-SDR: cs4m7RbYzpTVVfnPAxKfUQDAlJkAHFQqqDTBIwGhOVCG4Fee/1Ne8/A3JMfF/HAbr6970xsfwc XHeQli4H6kpmY1dU5YNab0ITiyd64IOolSo90slStPlnd3Fy5RGds//9sevPKF0qpd8Ji5oYQ5 mMBgFD5mxTFVxLfbtr2QN2FA3DsjLap1PC8bCCaSutAhcQLWVgwp0hHjmO43mzt5VWSK6USztx wm53Jne3+hRBOKvgtHpQB+JHOu5Lt7ZNiIOuWMLStyH1CdwDodW6Tk2kPo1MYs/d/KdzEtyQbk qzQ= X-IronPort-AV: E=Sophos;i="5.72,327,1580803200"; d="scan'208";a="47330838" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 31 Mar 2020 02:53:42 -0800 IronPort-SDR: +bMCQJJLPyqQABm5RnUXGfLNY9Hj6Vn8Rgt5hxaSnEmP2wMyR4frc0uc8Wfk1nE2wYwkH6W45y fNH8eckyDYA9xgoBi4n6uLU295Nhxjux1peD7SqJ1zzLtEgT0uw4dclDHtd37lVAF90JgjIY1G gBrmKAdZKB92z+RZwDsnCfiRoHSHCmxf3SvzttomhG5/ijL6MFc1YwoOlLv8pHd//T+LluRGQn W2+UWOTbenVP8qVFClPHDRak+gYf3DIx8Jwahvj+ubFfOll8kuGThmToKU0Z/3oJhVH26Waxd0 7Hw= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v10 44/55] Input: atmel_mxt_ts: return error from mxt_process_messages_until_invalid() Date: Tue, 31 Mar 2020 03:50:40 -0700 Message-ID: <20200331105051.58896-45-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200331105051.58896-1-jiada_wang@mentor.com> References: <20200331105051.58896-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 384b53717139..bbec5a8e0bb6 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -1561,6 +1561,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