Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp625773ybb; Wed, 25 Mar 2020 06:37:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsMiaaW5eoq7uxj9yUtcqOAUILh6jdt0xkB3MoWOZdtLQFYO5z4rSl7w8pf6AAVLF1jJbZ5 X-Received: by 2002:a05:6830:1348:: with SMTP id r8mr2350554otq.57.1585143457985; Wed, 25 Mar 2020 06:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585143457; cv=none; d=google.com; s=arc-20160816; b=HArkdwPEJXDoaWYG5JTH1haqMAeJzUkkrsBFc/8pETu22+NzeVklqX9V2e0Vzkjm2e uKOF/gWCC/yDUBsYwRsCfvo5eihtaWno5zu/y39Sek0kym8tpBWYnVE8UIhRYKwzYAb2 LNPaCQLqlsmm1m6cxmrTrqq1n5ohvjw2s8LvIK4RPy8eIrXSQwGTYJLfq3IidjFfwNs8 Wns1Fsp8a9eagkYYfX5hSy3k6dpDgShpn7eYdXXNXsyOCZg/68rW1IORIRyCV5RhNFpq 0nWmV/Nkmpx72A2qBihtzgqLlG3bUPL/GVR8dv5r/lQf7tv13zW61MkaaKBquMF4ncdZ Jb4g== 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=lSeM2UzOjDIOXbF12zFmj5bf9UT+zAaOmHYB7aRWM04=; b=vLvNCE3QAX529WxZ7m3kXvam8ybrBWPIZ5Xo0g3N+0kCEh4QoMLcKTp5P1o3DPB0+R i2oWUNCFACwvpJJVUef7p+86Tj7+a7Ih3NBaq5mC5LlleRVamsOROt6glj9liH1Rv+xM 7+g22nzyxWW3wJy997W31NHE2mwaQz4THNi+s2FSUYcxJEUb/UpA4SZhmTDtyWHp3azE 8sxiwbhquQ8OQpTe/dm4MhgbWiqUa0+mNr+L84yXGnUYDGZAYZrgXd0UOAWpjTZmbfuO v4czXM7dCqYIbsfKXDNouRy/3pqvhwwtiGvzpH/mEryXH+auo0H+HIPmMR2Bm+OD5Guf 7s6w== 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 w21si10951683oia.257.2020.03.25.06.37.25; Wed, 25 Mar 2020 06:37:37 -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 S1728002AbgCYNgW (ORCPT + 99 others); Wed, 25 Mar 2020 09:36:22 -0400 Received: from esa1.mentor.iphmx.com ([68.232.129.153]:4463 "EHLO esa1.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727527AbgCYNgV (ORCPT ); Wed, 25 Mar 2020 09:36:21 -0400 IronPort-SDR: n5it16xm7AlWaGv8yUFyoUTM2G/J1R3jL3K4GzA4Pt3XFTxmhSuSJUX5utTxlyItgehXtxDUPk DsewGhdUcLYmO//X/S+LZKxMYgg+A/ak6PUViCHalNVaAGAnBYT21OZi/+TWuKnl3XkbISaOiK 0slDiQhWKccFcYQqd6iWM9wNswnQRLyGjIK2rIWWtQ67QSqdcSkhfN1SWc3zkIUAam0+deSw3K ytVWtTOov21Ud6quNWybUT/g/zuIq3QLqdy+Qss2sWpf2Zt2GovylaIFJFExu5pOA7Hp2MKRt7 Fvo= X-IronPort-AV: E=Sophos;i="5.72,304,1580803200"; d="scan'208";a="49060146" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 25 Mar 2020 05:36:20 -0800 IronPort-SDR: WjqxMpeDrLHa/prPGolS+nmNCA4g1SXATuVL+LdG3vlkonWOjEsRxpq5+Q+qJckV/8QGPTvMKp 2c77LFQRaOONe5+nY7GnUuJlUBjj8P2d8C04fEw7tIRbbT1n3WY76qOd0tb5gX7SAhq7siqbUj kEp6gpka/lw+P/OpBckgmeGwnwteAgBjKwJR3+yqRLTYO2e9m70vnFDfmkyzKctK7eXvaZxZqT zVzwxFbBCt5YTSbUdMy4L/H/ON26JLI7PQugkWi8/iM6Db0qeLoCAZSZp4sVyRtcGvwoshhC2Z P2w= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v9 40/55] input: atmel_mxt_ts: Add Missing Delay for reset handling of Atmel touch panel controller in detachable displays. Date: Wed, 25 Mar 2020 06:33:19 -0700 Message-ID: <20200325133334.19346-41-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200325133334.19346-1-jiada_wang@mentor.com> References: <20200325133334.19346-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 cfeeacdd4084..fb7cd06cab53 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -4118,6 +4118,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