Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5827422ybv; Wed, 12 Feb 2020 00:47:23 -0800 (PST) X-Google-Smtp-Source: APXvYqy1gY2XTHRcSaOaSBf5V9PVX+Z/5rNFDy20yJPORy636Y2z1D7fmwfUcnfrO7MvLk4Nc27+ X-Received: by 2002:aca:815:: with SMTP id 21mr5700594oii.52.1581497243578; Wed, 12 Feb 2020 00:47:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581497243; cv=none; d=google.com; s=arc-20160816; b=qNBqSlCl4tNcwiPoDZN7Ru37LvqGPaZ7I9lXidLWc3TlWm75KSgvmC/tx9rnK34Up+ GiaItCwqQwR16i6fC1f42f/RN6wgVo+F15AyCWqPm0N0qaiosvYUrej3ah5NFPBDOoXf opTV5PlDMNat6UYVxxGSlXcDW5fA6pEkciNyk8js2CNNvnFlALa86pHFI46/lVJBcV96 rtqMM2FPIR5SsmH+rD3gRWn8o4R1KJO//umJj2D8yya8dbrIeFUfqvXHSric8V1EqOJH wXT7mZrilxri8gpLY3tAPpdVcjQQKSjlHcKSXYWMCIwJj3rR+ZBRxtw5/eKj/T8ZiL8T 0RBw== 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=5sOxGV6BzRT57PXy6SEsTJUt1q5rJCW35GVAiHZH//k=; b=jP3RCu2obRXBthZzAWyECaxCkLKIscSjBVJ9+ZRvXFegfRFZRixOCWTdTmdgK1LUl+ YEFgT4TQKEDFDqsRFz8lbLs6FzW01OGJMBNYGVGVfhJNd74SZmviVQxQ0oRpUE3uGyT0 ArKv+nUrGHR5MTlL8kqgQy7zmEfAi9tqNeG4rRzOX/gJUv68dEI2j55qUw24Gx5Yrbst LfMC5mwKh0Y9agHJFQalX3gTxA+9wfG+xa25foGCiyc3CqOSt4P/vWFUmRB698qXHbwF VA+nxlSptQJp9XG90b25H44SEQBYigM5+UleGo5P+YoRHrf8o75ubV13hTtWah8uOFXW qIJg== 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 d22si3364583oti.316.2020.02.12.00.47.11; Wed, 12 Feb 2020 00:47:23 -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 S1728808AbgBLIqf (ORCPT + 99 others); Wed, 12 Feb 2020 03:46:35 -0500 Received: from esa2.mentor.iphmx.com ([68.232.141.98]:34515 "EHLO esa2.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728642AbgBLIqe (ORCPT ); Wed, 12 Feb 2020 03:46:34 -0500 IronPort-SDR: 9+hPx7FG+WuQaZirnnQpDqYEVmKkmOwSIz9axa//AprH3dqwfo5R0albQ7VAFNzohaexh5k4Z8 beRv9JteVYwZpEjGJlONtgSnPS/1kvADN/ATEt6gQcoz7SpM7VajWYhF87HvvM8WnVwa469W/A zDbroIBw+YHTf78g/GE9SLTflpxqqcmmOYszHClTrKlusnYEhVnZfW+I+VnNT77+feYOas4ZWa JSX7NBmF9q+uTI/24gMgdiLIG9WnUHkUt9vz1nIwjxm7+IirrF34Jhk96dIrwmm8iu+012eswI yfU= X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="45686274" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 12 Feb 2020 00:46:33 -0800 IronPort-SDR: 338N9LpBYCPreBsCB0iunxweU2EgUyR1i2ofs4QTLJKpKa9ii3Kv7giRv/Aoni14ydu1wGSLVC lvh+Yabozuc0/p5jcQ7A7beoNh/cKTHSbY0FYLCzrZe0SHWYbbyeJyxqWcfDYWhh0NKbIowAQQ h/knKwATCEbEf28ci3F9GDYYcxH2EYDQ0MWR4bVvnEGpKBGHJA/BJNJDYtmJ+dWukUNBaVvOzg qD81NNROr300cubnUUDqBtAXJNHTMT/62rOmI1YWRTvrybd/SOmYTIyCvkrvO4qoMy+56AOo+9 tAg= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v7 34/48] input: atmel_mxt_ts: Add Missing Delay for reset handling of Atmel touch panel controller in detachable displays. Date: Wed, 12 Feb 2020 00:42:04 -0800 Message-ID: <20200212084218.32344-35-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200212084218.32344-1-jiada_wang@mentor.com> References: <20200212084218.32344-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 b4ec565ee7dd..9f4212aedd11 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -4109,6 +4109,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