Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp596862pja; Thu, 19 Mar 2020 08:04:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuxNjzmjKIYx4yxnFxmHp3jgneJ0tJPhnfDb+ngCIgYOVTWWqudu5hbgt9MVYVLFsXLGomL X-Received: by 2002:a05:6830:125a:: with SMTP id s26mr1411214otp.230.1584630287464; Thu, 19 Mar 2020 08:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584630287; cv=none; d=google.com; s=arc-20160816; b=IKMzowWHsUCklSVMLuIXKfmUDaPuyVatCVJ2uuTlyjnYwvK2ukYT2c0lTmK92vIsPH FVDruLsPuociOl0RESr51bMvU7Z+agBt7rjrRebjNFBT32GPunqGFhrIYaqI7GCIQnwf z472F1QRcLMXJsZbk3pGcYfBdawcVEJv5lPrxfKarcXLeC1bhe7T/KUNhunDCekNCEG2 sWj03hwSEVYePuFtLYLVGac/3TPOr8MwaUzV4LrBU3Yh0UV090BBY8qq0qNS2MOF7j+Y 9OdTN/cCfffdgmM+cFvKt2UXA3lnU46r8EZoZPggv261ehcntxB+P9kuAb3tLYezGyoR eEDg== 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=DBg6YEiu4hlCoaexpXqbVDIFgHDy1FwOkcrJZK0fKEw=; b=USEphDHRZc5UVdsb0LakD9ZCU5ue4GD/M6ki7LnnCgy9B98iQmMOjWYWsr6wu8HE+N fPUyxpHsMGLqqssRNeoe+sTiDOSuCylUJOLyIqQEumJQb6kQA3AKBaqPNAMNsZynLWnb hflDNfIXm+T7MlAUJYmBc8Zakv/ia3XINZ5aUQtACcj+r6KgrMW4SKemsBCBaTeT07o8 VZ8wz1GQMs2Gzoqzx26PSpWpRBTuakW0cnoDbxL3N+QtHUtzrhlKj55r1xIpoH+5QjyU t4aX15zQJYVodX8qv2Z3RO6Ql1W+XOwZ6QotCw/SI1p+w63l8v4Q/0odOUX5ind2srM8 1EpA== 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 a4si1366901otf.90.2020.03.19.08.04.19; Thu, 19 Mar 2020 08:04:47 -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 S1727848AbgCSPCu (ORCPT + 99 others); Thu, 19 Mar 2020 11:02:50 -0400 Received: from esa1.mentor.iphmx.com ([68.232.129.153]:16159 "EHLO esa1.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727800AbgCSPCr (ORCPT ); Thu, 19 Mar 2020 11:02:47 -0400 IronPort-SDR: 8LOk2rvlUau9xVpE4UgLuH4EVmEgfWFWCabIs6xpy4XJTF0i7Jy69R1Q/3JvXwVeEN49pjWYNi XSeYFHaLDarli/nessTwp55C8nYaKMyATkskc0vQ8FcTb5YHJjVqT89H7O6jTfatAEoTLnlPDf 5g6ANQUemIJUYwGnmJgz6z3Z2PWpHqj17nHmrcFb7i+cYK38/oYPhVucD7NBXJsxpR90ammF2z A5i03E3z9e8zIeKWzITMgUfc4dxT7s8Id/rXxNgm/+XIgX8shbcDX1SmV1XdX872aw+HQefCdZ fJ4= X-IronPort-AV: E=Sophos;i="5.70,572,1574150400"; d="scan'208";a="48850388" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 19 Mar 2020 07:02:46 -0800 IronPort-SDR: 8GvjBJLQVkveyXDY6aYi3uRO5ZOmThxV3xdzi8BtfmsoQCcuN/z6EXXsB3lz62mWbuIlBnORh2 j6RL2anoHVmwPAZmobBV1B9vVdishJrcyNIjuf6C4JdtSkK88bz2COZBfma96SwHOxUsNzDZ6V LWBPlFhniWt2y1b23PJ92jrVeOt9rn6PAuixscJ4ZwZR6acJC3VcPMQYQtfIF4Sb/18I5BZVT0 BirRgOepIQZyD8GOjWcEXRilz2m6vh7zfQZkohJkD3jHQ6ffp87HKsdqztL5bGa2jvRr+7pr93 09U= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v8 37/52] input: atmel_mxt_ts: Add Missing Delay for reset handling of Atmel touch panel controller in detachable displays. Date: Thu, 19 Mar 2020 08:00:01 -0700 Message-ID: <20200319150016.61398-38-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200319150016.61398-1-jiada_wang@mentor.com> References: <20200319150016.61398-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 fd3db4f8d55d..edffdec0d2a2 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -4110,6 +4110,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