Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1368848ybj; Thu, 7 May 2020 23:02:22 -0700 (PDT) X-Google-Smtp-Source: APiQypKvuBA78zARJQuYtVUMz/dy1d6nIZqH0Fc8q+gmUto+x03xJXajl/rXvwveDZtsSU1Izx9r X-Received: by 2002:a05:6402:602:: with SMTP id n2mr775957edv.79.1588917741727; Thu, 07 May 2020 23:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588917741; cv=none; d=google.com; s=arc-20160816; b=bPUUNnCTnumA8rjSzsgvEEcw55X8KS75x1kwA38RdLgSa2b4A3DEdb5kSYr+uQESSK hSqLjN00H0V07VnDfp/0X1hE5DZGhD2YDi19Ats1s+2njEYX+3VNSFMt5wHBdCOlZRK+ 6RnDb5RJHiCtvODiniFYs1F/K1zuRqXx9ol1xfZS3vURWJ1hmPC+/OmqUrOprXBFAgW5 Gq+RJXE3CvTksypA36/dUBL6GiXLtHLD+SGukUWCmkGF69goPlwDEO4qXIe+SXBmzrpu P10uebqmxxz59qRIWJ+3EK7+O2QI/zJJ+KWvg3ddCpm6bG2He1anFfDxaRsBnvFXC5li SojA== 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=atFUmVOBVIe/EHNZb7+RsdsAPbVYj2ORyosI8Q/R6vo=; b=rp6MERbUVaGwKfaegiSH//Cc0nFdhYkB4kOEv15HrtZM1x40AF7q3QoqtgGA5XsZQP S6GE+BuyCDFm0OskabyBe02yW35cTZhU9tJvc4//JqzmXL+LNJi8wU56LiEjqanFzKnY BdwiWDipc3ocfLQ8nuTbfyKKobR0ACDlLYi9KHZ0/F3j0D8plRWXhdQa6+rVYxJXPlYf FZuvs+gdJRQB0KBkvYfAKKVWIz2kWez1t+ECGHsabcZxjelf5RDutyzkt7lleGVoXA5s FlhCB4M+aH343pvT+0npla3mINzTB4LgNVqmdwxwoTZjjakTt3B6OxQAX8g1B0GPFg4r benA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc9si379214ejb.503.2020.05.07.23.01.57; Thu, 07 May 2020 23:02:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728244AbgEHF7m (ORCPT + 99 others); Fri, 8 May 2020 01:59:42 -0400 Received: from esa1.mentor.iphmx.com ([68.232.129.153]:38765 "EHLO esa1.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728219AbgEHF7l (ORCPT ); Fri, 8 May 2020 01:59:41 -0400 IronPort-SDR: KdiCdzezZaBxyLhG/IRkyp8tax5lEXC0jm1F/wlimpaznFifHV8LlyENWgXNnhzjdhqTdZuGG0 3/21U82N95o2E/Bq9DDBSw7kbDUKF+vy+/SFts5sxJ3yokTPVsHLVGPe1WjNJXfWWWaoII+Fx6 a7f37fIsT+jHtWvnR44CC2lcwLqhdX16mANSDfb2Fs/Us+OrdJfakdyzO0UlvcI5NMfvxOu9Xr OyBsmq0HFJF6w/wE77SKiOzyrw0DbnAH7rQSiWQvee3jZRAYtEbEJI1s+aeeceft9jCnPU1BpJ vLY= X-IronPort-AV: E=Sophos;i="5.73,366,1583222400"; d="scan'208";a="50670133" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 07 May 2020 21:59:38 -0800 IronPort-SDR: r/Rv/h0cRyyuPc29rcGtKYaaxVbI8fjHmNLO3O0xcDBznkKIV4SszxtVpm1089kNZ9o+7sjPcn CV/9/0w7MTJuWRNuOpjULMI0Pxy8hzps20cSoSHEOSCy3yQawoN9EwOMKD+UyN7u1TqlT5kcbP EFv5J+u+t0pl64ppMB5HbY8xfDbc0ZM+zudrW4UWjcvb1XXELstpdkqDbFU3UJPSF/s3018NMP VSphJ7hbndwrLpONmjm5HDcRu1ypKym4ky1sCtTtkqtW2U+OlnNypEknJ5R2dfRWw1C3hIEIAv 3GM= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v11 42/56] input: atmel_mxt_ts: Add Missing Delay for reset handling of Atmel touch panel controller in detachable displays. Date: Thu, 7 May 2020 22:56:42 -0700 Message-ID: <20200508055656.96389-43-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200508055656.96389-1-jiada_wang@mentor.com> References: <20200508055656.96389-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 ceb14b4a8d4d..3ffd49b383f4 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -4105,6 +4105,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