Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3339178imm; Fri, 20 Jul 2018 14:53:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgperOb2zFIj9FFaWUgPFBUSrCK6zn+wHtuG/BNGTd6spbafOn+TFRYqjVg31RznNzKaynJMl X-Received: by 2002:a65:6398:: with SMTP id h24-v6mr3528881pgv.245.1532123608367; Fri, 20 Jul 2018 14:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532123608; cv=none; d=google.com; s=arc-20160816; b=RTYqPi+HTvZ/RTYGSQzbqWI9b8Tadsnzh0YeX3hkyYlCeqdgTMl8e/itbE6a9694DV 9+GqG7myE5rFtBW2NeIJFXwyqAitTlyNxdk5KarcvIF8d7N6G/GVbwTgupAcyZBchTXF 9fSCivzaHU6WOOZscplE1l+ZVF0JgPSDgpnvFQxGkhEvtJPwA2GLD7zNn+b8ZWQZ0uWg m83dymzYaZ36OsYCMs67y1PUdOKbXyhaOBgHtFQMk/yOACW7/ORwmsmqAu3gPZuhtlQc T886x3G1z+utDrZx7yRiLJ+v/1vIIvTH4LIN7xn9OU7T/DF+mMOu+gOfOKpDZn3CZk4n BuIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=LJYl2RmuxUzS4AgxhBQFHBtM6E0rPoavY7utVIjzy+M=; b=ek139NFi8ecW9n2kIkvSqhEuOBLbHCYWViXudJTAl31MgsqdA5l3lCM/Rh0BLxjw5e 1J/Q0m0YP3i1eMI23QtpFzNymMCH9DrkekIkDqCRUdTKw31LtOH5ATl5N5lpGBppspah 0m0/7wtUPRVvn8ay1LAu2pBIym5mVoiwGXqWxlcJpg2fn/p710HQhBKKdapMMcKMHBYg k+s52CqhAbx3q+zUoA1Qo9YvnR44l4stxOrnjLaZyYpamD0iGeA1qhMD0qpGX0LDzk9N xt0nc9pCpHrSbVFmV9tbraGwrTyVzkGOt2/7k3fAiqiGfz5VeoDiOzgqYsXIicXcV8gi eVLw== 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 12-v6si2513395plb.511.2018.07.20.14.53.13; Fri, 20 Jul 2018 14:53:28 -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 S1731768AbeGTWm0 (ORCPT + 99 others); Fri, 20 Jul 2018 18:42:26 -0400 Received: from avasout06.plus.net ([212.159.14.18]:48150 "EHLO avasout06.plus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731402AbeGTWmZ (ORCPT ); Fri, 20 Jul 2018 18:42:25 -0400 Received: from hairyalien ([80.229.148.18]) by smtp with SMTP id gdJtfIgPjWLW2gdJvf5XG8; Fri, 20 Jul 2018 22:52:16 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=fJUXI6Se c=1 sm=1 tr=0 a=o7Djd4SkmPXITDn8qH+ssQ==:117 a=o7Djd4SkmPXITDn8qH+ssQ==:17 a=R9QF1RCXAYgA:10 a=V0UhwjhiAAAA:8 a=i_WjPEPfpYfp5gNgJU8A:9 a=6G8YB_76TE7o_SSv:21 a=CHZDZPwrg5D3xYBf:21 a=_UVLBGXn8Au_dgoMdIS7:22 Received: by hairyalien (sSMTP sendmail emulation); Fri, 20 Jul 2018 22:52:13 +0100 From: Nick Dyer To: Dmitry Torokhov Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Chris Healy , Nikita Yushchenko , Lucas Stach , Nick Dyer Subject: [PATCH v1 10/10] Input: atmel_mxt_ts - move completion to after config crc is updated Date: Fri, 20 Jul 2018 22:51:22 +0100 Message-Id: <20180720215122.23558-10-nick@shmanahar.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180720215122.23558-1-nick@shmanahar.org> References: <20180720215122.23558-1-nick@shmanahar.org> X-CMAE-Envelope: MS4wfJcR/YNZbKArKmLhk1ylzNmMZAZAScM+C94n5lAqK1bNe72Pj6Iz3btxpPyEo+Pgt10c+WdhppQ2++0g9mP8EFJc14BH/mT5Xvy+ZkZljqk4Rc9nzn1k r3W0qU8th2gY+OoR9KpjSRmmJZxf/9qrbjzZMlql3wP3MeD61RWMI5G7rluLy5axie3LKodzf+fEfg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index c31af790ef84..9f296a66c94e 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -728,13 +728,13 @@ static void mxt_proc_t6_messages(struct mxt_data *data, u8 *msg) u8 status = msg[1]; u32 crc = msg[2] | (msg[3] << 8) | (msg[4] << 16); - complete(&data->crc_completion); - if (crc != data->config_crc) { data->config_crc = crc; dev_dbg(dev, "T6 Config Checksum: 0x%06X\n", crc); } + complete(&data->crc_completion); + /* Detect reset */ if (status & MXT_T6_STATUS_RESET) complete(&data->reset_completion); -- 2.17.1