Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4316849ybc; Fri, 22 Nov 2019 00:30:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwbRz6lZU1mxa6cZZqkwZIsu2aoaMqZDs6UTS9yzK6PJ/d0JlVju8T1nhKuQrqd6hlWm1E8 X-Received: by 2002:a17:906:7a47:: with SMTP id i7mr20579519ejo.22.1574411432386; Fri, 22 Nov 2019 00:30:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574411432; cv=none; d=google.com; s=arc-20160816; b=LumkOkBb708IKvj0h9rsgsyRXLxQoPUPfck8fBvFXltYSJarApSK7LfWuwxP3x589Q +9iO/008xYnPGCYTVsbPsgH4ALsXHV8DEbyZLlyMQWif4KbeV8QYNHjKDTd+pe9Nti9S c8XHJDhtSzqGY6N6IzNYA8ZFzs6MF7f5VLfhiOiQWfhH23qjlZg7b/3x0cNmh0cFQGz7 XShA0Pu+pCuXFCr3IY52ggNRn723aOrzHnwvGKAH80brk3d5PKrpENjILQ+oOoyft5ms y7zodBnd39QAZ3EXsl1AWbtDX1OlW2TyFkMyURmhgk2XS7CbLfLlrv6U5GkRwUzGkKSj pljQ== 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=gdEE8FQ/EzmApH4f0nPoDyrfhuqaENrd5XDxz6/h8NA=; b=FiUNcJpJC+4EPNfK0VxywU6EVe55MWB9Q//WfsVOLwTOTHm/FGWfgzPOUOcqQLVUD/ 1Qe+DtMfAVwhmYIOrxxW782v3zdVx2QK6WJbXNwdXTYXoqsk2EYDIMTRLm2EJDgmhpKy zUUAtX9IZhjD2zimQ3pu2sfPqdBDsAJjZV7gYLBCO9BgMbKCOnbsWYlRoTKdgMCngDyB D/rzoZv1GSn5T+ArDpRVpVMTBq9AiFsurlsLK5tesSYhh9yUlwJz9w2kPCNIAGOCSLI0 +o9NJjV5pocUxqQTRYg2rPC0CJbgVcXuJA4ZCmBu4AqlgBUNGiqX0UKp2Tk6yIh0A9xs 9lVQ== 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 t27si4300036edd.304.2019.11.22.00.30.08; Fri, 22 Nov 2019 00:30:32 -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 S1727648AbfKVI0Q (ORCPT + 99 others); Fri, 22 Nov 2019 03:26:16 -0500 Received: from esa1.mentor.iphmx.com ([68.232.129.153]:23065 "EHLO esa1.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbfKVI0N (ORCPT ); Fri, 22 Nov 2019 03:26:13 -0500 IronPort-SDR: O7W54g9Zc1mfeqZ7QL3yZZBXBaMiEr6piTzJiNHzHEsy+1De8bjC60CLhkp96WTeuMGH9wXCMb zqmQcCdmab/9gkY0D3ZfzY1q3bTWL+knnFUSjyWWuynTq7jhlhQUC4wJg2xhHqW2gFtwvmzlTa rg5othlFxXTMibkqKbXOn1ElH+AXsFXT8ZfC2MlRuh1gNLIaY35eixcKFOE2AR4Y/kwe/aRidU njK+6MXeyC0Ihx9eqAY4sjCYnUl8heC2vUsr8r98vZqYCLXIvhR7EMdcUboOPj7o1FpE/c1wQZ CRM= X-IronPort-AV: E=Sophos;i="5.69,229,1571731200"; d="scan'208";a="45291168" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 22 Nov 2019 00:26:12 -0800 IronPort-SDR: 95vGJvZy7P4A4RfrXVys4fungW696IkjKtZ4DNEoq8GnRe9DywS5XuVq2x3BNd5n0w0SuER+mI CCKnMtzqECMf+yNb8700wyq9twk/ldtKomgPZxre0NX0641+DodnG76Vk2Rv4e17LHw0rDW1oO ggBP37QNrolrvJyy5cDtLKCVE+9t2nQ4muur5WSveS9rZDIer0viqkfmrBAf7IeluerSUSe3EU kcW4lJEiP/HhMavlHIMDJYQJu5FbuNIz57kIFi721+RuRsNJrhEaCgiDG38azdETwptpWhHU/l Tjo= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v6 34/48] input: atmel_mxt_ts: Add Missing Delay for reset handling of Atmel touch panel controller in detachable displays. Date: Fri, 22 Nov 2019 17:23:48 +0900 Message-ID: <20191122082402.18173-35-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191122082402.18173-1-jiada_wang@mentor.com> References: <20191122082402.18173-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: keerthikumarp In case of attached display, the touchpanel reset is controlled via imx gpio's from atmel driver and the delay between touchpanel reset and the time at which the chip becomes capable to communicate with the host processor, has be taken care. However in case of detachable displays, the touchpanel reset is controlled via a deserializer gpio which is triggered just before the atmel driver is probed.The delay between touchpanel reset and the time at which the chip becomes capable to communicate (as specified in datasheet) was not being accounted for. This patch introduces that delay. Signed-off-by: keerthikumarp Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index f357d353447f..835cc7a29c2f 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -4112,6 +4112,10 @@ static int mxt_probe(struct i2c_client *client, const struct i2c_device_id *id) msleep(MXT_RESET_GPIO_TIME); gpiod_set_value(data->reset_gpio, 1); msleep(MXT_RESET_INVALID_CHG); + } else { + dev_dbg(&client->dev, + "atmel reset pin not found in device tree"); + msleep(MXT_RESET_TIME); } error = mxt_initialize(data); -- 2.17.1