Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3366680ybb; Tue, 31 Mar 2020 03:55:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuYYLM2Qep2s9YR99RF3NedBv9oPEqR+6mkcwXtgkVzjZbEo/fzcdlefZ2b4PVCVXdcD4Wx X-Received: by 2002:a05:6808:8:: with SMTP id u8mr1541924oic.37.1585652106158; Tue, 31 Mar 2020 03:55:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585652106; cv=none; d=google.com; s=arc-20160816; b=OfS3HFimy/UUfnTfGcIUFKt7TpYyY8AwTca/CGhEZa4QSYGdyn60UUPjPlW84zWL5+ TNg/dNnO7hdiiVRkH8wouDQwUXsxLc3iCH/JsEUqPwwhEPyQwCe7n4+n9vfeJ+d+Q2WY kbjMDbUtF54dmm496m3uSXzp50t9bwt94X32z1PEfkCLreu9LFZW/w4+G6QU0EiIfqNm LDXS2JywY2xCrUhlj+tpvcQ8EyrfUdtykLHZasox3lR6/BZXp55v2w2OovhNqnLeSt4C JXWNH5zcyzu7poe7cyzGSchhHieLEB9JN6HsSDPhLXWxw6nHKI4GnNhiF+m2aSiTWO8f 5q/w== 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=KefOIaoxp5U/KW2MJi9jXMJ7NHJhF23Tfi+TG6VeHhAMMR1E3SI6sDhKOklV3Xwjn1 g/4iZzhTSw+2HG3Qhc017AHJWGGbu/Z/uPhh4fdSh+nsiqbojU2eJjcX+aSVE1GErP8q 3MjWYjieaKr14I4wn7IPktTznR6pOvHKwGdzMXOFAenmy/LCF+iFAEWCUL18uVJSUmly 6wFIVY5BXsuxPz3PINFtHjPKkc+yLpO4glazflBVBNa4Dw1V3sJkwTAejqhdssojR365 6PYyqMJdYFuMDhjs2/Syx+7uAvLyX3XrS4VvkfZEgJPvIPYc2/jJ4U5TcHgLsHM4jiZh /2NQ== 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 a14si6750652otr.170.2020.03.31.03.54.54; Tue, 31 Mar 2020 03:55:06 -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 S1730694AbgCaKx3 (ORCPT + 99 others); Tue, 31 Mar 2020 06:53:29 -0400 Received: from esa4.mentor.iphmx.com ([68.232.137.252]:43597 "EHLO esa4.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730426AbgCaKx2 (ORCPT ); Tue, 31 Mar 2020 06:53:28 -0400 IronPort-SDR: 6/0j/f/+9NchP81t2XhkzmxWKBRblQHwrv/Ngk3HUjVdI4IUDfrzsWTbfFhZlnUTw01Dr+Mt3L lUj2deaTLNTIdMmKalu+Vpxo1oe6G7mMP9Z46BY/H6K7Fb3IW9AyToFM4Z59mMcvVz0MJs8NyD vviEjLCYmCUu674qbv7yL2c+g8tj9RiX9wcj4jN1ROnBc66oE5LkNeTE8MPHQtHkrCcB17wj6A eGU0s5IAe8WsJ8tNUiwbixlglP5XaAzfhVX8KhbnMPTS6wC9e/bVJk6S6LviwbKJ7bDC9hhbEf 0fg= X-IronPort-AV: E=Sophos;i="5.72,327,1580803200"; d="scan'208";a="47330824" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 31 Mar 2020 02:53:27 -0800 IronPort-SDR: uSsoBXL1GYn/EeL2k5Om+kok4Fo2TiN7Qh+W3TdJb74RcHLdkvNF+iWEuioIVUYEZw0Q7ol8p6 kSgKkFb91l9GZ0beflbR0RP6h6iVDuEn3JC2MbZ1fNwIXztPrwUd67wk1I2ECbLm81cN26g3Za KLOtz26Mm+adwdVAt2eTAtx896hNSC408cKK12YNdtChWfCn4zSITsDAE78rS1OSsazubsd+yM fhC7L2+BxStAf6CxpTXSFeHSLeeBxqNB4y/ML3OBvg9gYYiB67e6XsdISBqUX/alKTc0si+SGZ hRU= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v10 40/55] input: atmel_mxt_ts: Add Missing Delay for reset handling of Atmel touch panel controller in detachable displays. Date: Tue, 31 Mar 2020 03:50:36 -0700 Message-ID: <20200331105051.58896-41-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200331105051.58896-1-jiada_wang@mentor.com> References: <20200331105051.58896-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