Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp626900ybb; Wed, 25 Mar 2020 06:38:50 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvW2tXYiD+mf6qVyX6miw4Uzl+Xl1ldIT0U+GxZoLIlK5TGzKuaqp5xJhLr3wF3hXhxT3Vh X-Received: by 2002:a9d:6c19:: with SMTP id f25mr1041315otq.371.1585143530710; Wed, 25 Mar 2020 06:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585143530; cv=none; d=google.com; s=arc-20160816; b=kJaR603iBxxa3N5hhfMqa8RHFwgXbPmmpSiqvWCSf2rXjDWUo5GyRKO2/DHxihLFLh w1BLgUmBRivk3HmGWd+c1SZFSWmb8pewp4jv8EB/ygWMVa8i8LKbbYoVJGt3KAfbdhu4 GLkeblUgkM6FoknP6gTyxvLBMWn69E5CyKCPbPMzn68S/fbrb6oDfmqCUbVB53sodNSk +ILZS8+MLr74vM9sHwOIpwIQCzkIza1oIp60mYzOdJK4zUdYuFBlB6wYtAs9ybbPW/tf iDl+4fr9/q4GNcea6d82C7sP0H91hf+RVaJrPBsHnFiDLnAhKvE2rvaWJw3JY8j7Losp OI+A== 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=VpXnIAVi3EcXQ2/Y0TBs8OIdwu/INF8wPqmwogMAXH0AeCoWiOFD7rq8TFxjxsQyoT lrF6qTrnWCxdYs10oNPvH60FED5GHqZIMtproFgukvhBt+Hcy7n81Ms/BXJ4uaW2c+zA 7wY5mn2TxN92adC2sDM5Nn05ZcFfJZAXUTzXrrWyR4yThI82nw59tvxdDGhyVLjFZXr4 kMccyQufmNp4etQw3+xH2zCVbAP9ldm8UPrSqVWSc/icOW9sXnjOb7nbKAnIpCnyw5rJ XrEuMKCF3a6YD3LwzUSd6iT6rphLiNoicWnl6S8pyoQseEBQEP9c9YRq3LXVAXkRUkcI s29Q== 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 e22si1485633oob.87.2020.03.25.06.38.37; Wed, 25 Mar 2020 06:38:50 -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 S1728057AbgCYNgh (ORCPT + 99 others); Wed, 25 Mar 2020 09:36:37 -0400 Received: from esa3.mentor.iphmx.com ([68.232.137.180]:53281 "EHLO esa3.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727316AbgCYNgg (ORCPT ); Wed, 25 Mar 2020 09:36:36 -0400 IronPort-SDR: MAY16midAjYW6QnVmLZdWoPX/0bGvCgcoxkwQJjegVIhttLkcVVwNYlZ0MWAidDgW/jHf2eV31 2qm7DDUlkPI5NxJgdycRW+CqrOS10UuWtUp5Ab8FpQtP4LhoS0E8Ipn9uMlwhNfHrUg+tPWXOx c5UBR4juHPQDs85rxs+VDlHMexlW/Sovsu45DU3fFXheNmhXraoIf5n6FtIKnMwBUX3rm/V2G9 OjTQkTMyuGOL+IWbEeX6dU/er4xZVNQi5LNwJPc2Tku0LCGp/2kXL9+4KL8AxUHDYKdznJle7K l+k= X-IronPort-AV: E=Sophos;i="5.72,304,1580803200"; d="scan'208";a="47099806" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 25 Mar 2020 05:36:36 -0800 IronPort-SDR: vrZ56uqQWDO4Rty+KVsYwE1rXfKwwKRgqMqFckGO+bLIIyRZFjaLmWA0usIvkS4xTOclItQXVd Iq3+uq3TP9mFTqt4El/V9sMZqOMHykeNDOxxJlg1UP0fxDStAfbWMbg2w8nPvqsKDr8AFoCGkx WAK14tuRXIH44cAhatvNyhPJmxevqBYiq6IfpEGYsHbyxJ5rXiqzf6IW7cvjKnlhwU88LKlLb+ Cku9bglXU2ZY+s/L56PbW9BjqBx0oacpa2Tzpp6rjP3//EdCBtJfeJ4kylyyjcWK3S3r6Kne89 3oA= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v9 44/55] Input: atmel_mxt_ts: return error from mxt_process_messages_until_invalid() Date: Wed, 25 Mar 2020 06:33:23 -0700 Message-ID: <20200325133334.19346-45-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200325133334.19346-1-jiada_wang@mentor.com> References: <20200325133334.19346-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