Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5827608ybv; Wed, 12 Feb 2020 00:47:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxz8iPgdwLwmIBEyXThDLrXtgg036WkWO1iZl7w9Le6Z6yfq4ZA9boSXLZMIeTlXAvxOdki X-Received: by 2002:a05:6830:1f0c:: with SMTP id u12mr8312752otg.253.1581497257296; Wed, 12 Feb 2020 00:47:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581497257; cv=none; d=google.com; s=arc-20160816; b=pMpS4w2rqJOUsGDk9U8Z3f0LX/z+dFV26hA0XcKcym3sUdqTvQQWT/aIqWKn0Nn2jS mlXB6sTtRR8xGYgVsQGoc0Lh99IogY6MXHx8eS9pzpYRmyXCxbS38+A7Wwm+vvN0mgj3 8+gfM0ptFuW/6S0q1lQM5+MuQ9uRE36qneyu7y+1Ihctuzir205kA4wfKKSn25GIU6Ck AqQWSdf+uXpHnZbYc405uEVvQDMMzrMB4i993PQXu2/ym1KI2GpYVQ6xPa90KYZ3vYo0 jvzPovtTy/hapNqRRPXBT0ZlPsMbGcG6qzIxN39Vzklo7TNFIZAN1p/pJpB69stXC95y 5v9g== 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=7M7pW06LwraonrNI9i5hNFX4nZL++z7+xvgYmgTsDeA=; b=rEXIBhb7GU97difKCITO1a7n8CRY09bIILy/OFSjFO5uW2tGTvX0k0xJWYf3SFJp8p fGPT5nPm4S+ZJ6FGJ4tQgy1xP5RpLFur7sY/D17yBv929jBpfmIwy6Q4YW7M3wrdR/KH YpA2unv/PYVY3bbMIJclPD1ADwJv8U1lCqM25+HgBzw9/1JanR6RoABNWOuyzvxC7Dc9 N1H6PJtBSvwPqX/Qn8v1hsPXYA8/IOqLFzE4leIHGQ9MhiNjHMJFyxSikEdtU/GZ2oQu esNyq//llpTHy0s/zKcoIg1UuOiq4wG1N+V7ccTO6SbtPg9SzoLPdZVGuE71hk/rr6xM 6azw== 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 l11si3253448otn.189.2020.02.12.00.47.24; Wed, 12 Feb 2020 00:47:37 -0800 (PST) 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 S1728671AbgBLIqw (ORCPT + 99 others); Wed, 12 Feb 2020 03:46:52 -0500 Received: from esa3.mentor.iphmx.com ([68.232.137.180]:17160 "EHLO esa3.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728591AbgBLIqw (ORCPT ); Wed, 12 Feb 2020 03:46:52 -0500 IronPort-SDR: vFO/8iMOZvLe/WosgM0kvioR+B+G1CGZPhfwfFgpU+vhMixQ3N6C4omLoVOizpAn11+Dy+XCdk 5AeFru3dJxqq33BJRxUgOyRA8lozNV1n10SgCBzLxRgrNhUqfLDr7e8djhWdXtl1fjjmHcAlwA y0eZRbCm7TnYzcp/hHOSvsIvpqWBAztYiQCHqR412AFi+ZFe87Q5iJ899osycgcAPV8QKfREnj gS6VzIGNMPySfsPt0IhKNanCTHehOzcMpHoIO4ojPMpL3T4bxeJeLkR0EqsN0B7eth2OBfKTKH Vjw= X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="45742604" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 12 Feb 2020 00:46:51 -0800 IronPort-SDR: fdA655HmgTAOotSneHGqhJEogb7ZZo+mL8tnC6RBLs9q2A0bPO8EFjy5LG2ju/chHEMJ4ABi/d 4gS4m96Xyc8HSesdSMcT8AMC5cBsZ+YEBC4nbkgSdQH3PsToD5I8Lk9Yol8A5CGOddb7CvTbyt U59Z/VF8PpFXzF3Wh+SaQ0zQWwR1cl2cDdhxzIxwj9AaJ5lkSvF36AgYMpE9iPK+NPesH5MhXg 2ODKXT9mfzxQ5KdCJiTRR6HfvPSZZHdZSvVdV7sSD2RvqciEFrOh1gbsNKnvfcqd3M96xzfx11 bKM= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v7 37/48] Input: atmel_mxt_ts: return error from mxt_process_messages_until_invalid() Date: Wed, 12 Feb 2020 00:42:07 -0800 Message-ID: <20200212084218.32344-38-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200212084218.32344-1-jiada_wang@mentor.com> References: <20200212084218.32344-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 865c207a0d72..2a5a5a362a13 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