Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp749297ybg; Thu, 19 Mar 2020 08:06:41 -0700 (PDT) X-Google-Smtp-Source: ADFU+vti3E/BgPDITfoK4t63bu3/jjoQRowX0QULR3u9raK48FxRsBbh/RCRxa2Ind91N55pZ+aZ X-Received: by 2002:a54:488b:: with SMTP id r11mr2779312oic.24.1584630400869; Thu, 19 Mar 2020 08:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584630400; cv=none; d=google.com; s=arc-20160816; b=fWNZG7F1nbTdb+y1d2kNbkyguQhkAx5X5czUynU7r/zJufiGDnsQPHjh+VXqYZ7Il8 Y7yIwYiA03nf2vfZJTVtRoTJ+25iP1MN4lvzl/beUIuxyx+dOuKLdbcEmVEYENLxMEyH 8+smfQp7mGJvqaIifk7rlB/Yj0r6w+ZoAk//IbR57KRA1Bsp5Y4+5U0MyUh/UV2I9VGJ +QXa5Sa2S916LLizWVmKmQaGlAkN5R/F+UP9tzzA+n/g/Sb9sJn3SeMJgLevU425eCxr D3vGuvBnBCh2ZM4G5sKIsM8Ob04buWgVreulKxq+ZwNBJlFvBiJjoJN2yhpYUN6FrVWs UHxA== 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=/cOO0MMnK9sCW9cL8TnUurPnCbgnLisAeMx2K/ivMts=; b=yGm5p4vgdNVyhOEh83XAZCBA4Nq66xTU7ce3WjxYotmGB4E/xQhLISAfAKHgtCb5BQ M+Eq6i5WgVD3uRysyyTPCQZtwLgbP0srYtA2eLRg/YLJ2zYcXTVwL3By+Ro5U9Af6L+R pUb7/ywAs0Hsh95X3KqKyFp6DT1IoDm3ojdMsGWGaE/a7GLfuf25YqIVx9PIMP33Y630 UTZuJp4kmjy4Mxb0HEmb+Q1+/HNOE/yvfWe/u1Pw9TZGEUMY037ZxhkasN/NP0OvAf4z PQurgIGjjVHWqbDPcNRcJd5wTNtyXc+Owx1gw55whdcZShjbWtAP27fSlKJA1TlhRtCW zFEw== 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 b9si1842758ots.148.2020.03.19.08.06.18; Thu, 19 Mar 2020 08:06:40 -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 S1728375AbgCSPDE (ORCPT + 99 others); Thu, 19 Mar 2020 11:03:04 -0400 Received: from esa3.mentor.iphmx.com ([68.232.137.180]:32379 "EHLO esa3.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728370AbgCSPDD (ORCPT ); Thu, 19 Mar 2020 11:03:03 -0400 IronPort-SDR: 22/m8Pr2ZEdlhlF9WqeDi6uOdg54KgQeINoEaIKmFnoyD/cBD6XTC/XSw3E/bfEMR6Di0Fvaop nrlLzOtZFBSjnSv8BOG/oWwh8JZjCT+DVrd5DdhvrS0YkrBqEkzdJtFH+OzQF2hGTDwz+j2r6p DPt9WuGviVc71dt2uNYWj/Lpkn4lMOHgApSMJbtdxlgEG9AB0BwH0Q7bTtsu2N5ocfyrx2aSWp G5qyYec3g6l6XdDGiDOV00z6ypNLkHWwU02U7pw9ovwSXLl7k6RmNONa5/uBYHVtDJouW5XBUT Ehg= X-IronPort-AV: E=Sophos;i="5.70,572,1574150400"; d="scan'208";a="46891033" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 19 Mar 2020 07:03:02 -0800 IronPort-SDR: K5vGjlBOXhGv6FN/B2bu7F7wIS2bhhecQzdeSdKfmnpAUuNBY8827cL3CuxQAyyHoNOwYQOXt0 B3LubGo0uIxSK0rGtNoVbMgFHu36kL3nu+JBgAM/fEMQdILmkzPBQ+GLUpq32pBUbn9PI0pFY6 5BOn/bs1Pp7rF95QmDK0Z2b9RlcChzEzrFxOmky64KHfFILBiFC5papkcEwRhskpSg9JeNjHnr /sPjs5huNUK+mRXGBd//Zg2eMxzZJL1KGyLIDyobmKhMixKQyXoDs2fwM4GmZwB/qtJaMRm+9b 1F0= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v8 41/52] Input: atmel_mxt_ts: return error from mxt_process_messages_until_invalid() Date: Thu, 19 Mar 2020 08:00:05 -0700 Message-ID: <20200319150016.61398-42-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200319150016.61398-1-jiada_wang@mentor.com> References: <20200319150016.61398-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 13258da70305..6ee83eda7170 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