Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3352109ybv; Mon, 24 Feb 2020 23:36:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzEOUvWgaASza+Nl4gVmfl9V01MAIZrDLwacA7YHobtfJ2Qs96EasVowryyH/gkTh9tFGli X-Received: by 2002:a9d:63d6:: with SMTP id e22mr44626540otl.185.1582616173042; Mon, 24 Feb 2020 23:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582616173; cv=none; d=google.com; s=arc-20160816; b=tKbEnItytkePvbsRxJGKdqZEJ+UY+ziv+aqvdbXicLeVMG0Xu3JAf0YFWxlbE/+mvu o3r5Rik6lpR8mO6jFs8NgoeNsW6lSaBQ/S/ZWAxSjjZ4YSODWzPQPC+5anP7RMPNz4zF rJRDkXgaGw72Pk85B6kv1eL1myWofLBDOw5GwPYOwJfH04gIB7/Q5RvMVTH6UncBT/cv ckFPperMvHR1+cMjNxISkhq9ZD/FjbVtw+/Sq9IL47NeGSBM7pdeobpTmsNkNO1RngAi VUPySSYeqPMhJN40rHmRE8rx01293box4R+gI9vQ4nx0xtRu3WbXrOHFYLdxgAF9FMi7 xCrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=4OrWqlhl7RH1jTafRKkei2XCv7K6NE50cBlz8tG0/s4=; b=DxRoQFPso3xuzMLlM6mbmg/hYFZcrewThcNRcqtZE0Jh159n0DsDwJG3aeIeWNYOz+ gO7gqJVuZ53+gZZnCNGkv2w0ICndGNe+5hFzCda8WadCjCdXQ3u5rjdLB6xG5gXuIUoD XVI1e/gXtRL/qV4ZUgZonygX4r2Rbw4MCVuKB3VKeCywWCbHixkQWTwg1uZ/o3GGVzSw B2U47Vgk5dtAHQjF5Zxpr1Fdi/yP+Fzgo2rnW2kydiZ0wLPRTic2Cyc9T3wuKUFoLJ5S dYDGoxls4NvP13+Udho3vQo8iRh7mK1xYtEytM+QGCRS0D6OSCPPz8bUIssSFf4lv4iX Gi2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jze759ES; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si8534413otj.24.2020.02.24.23.36.00; Mon, 24 Feb 2020 23:36:13 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b=jze759ES; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728963AbgBYHdN (ORCPT + 99 others); Tue, 25 Feb 2020 02:33:13 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:1558 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725851AbgBYHdN (ORCPT ); Tue, 25 Feb 2020 02:33:13 -0500 X-UUID: ce7c876fb8d8431b9dfd6369f053cb0e-20200225 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=4OrWqlhl7RH1jTafRKkei2XCv7K6NE50cBlz8tG0/s4=; b=jze759ES5qDcyIlf7ARvdZ8A/RattSLmIsAoPvkXYm7l8Vkrernly5dpqXspmbMGc7Uh8QqpLgGrTOYlCndG9psZHll64+zxt3yClfEJocZwy0Yk0Aqzh+UAh1lrjWR6cdXig92tsD2XIoWJtby1AtcU+KGFQlYn90zil/Uj9+w=; X-UUID: ce7c876fb8d8431b9dfd6369f053cb0e-20200225 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 535198561; Tue, 25 Feb 2020 15:33:07 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 25 Feb 2020 15:32:13 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 25 Feb 2020 15:33:18 +0800 Message-ID: <1582615985.30857.5.camel@mtksdaap41> Subject: Re: [PATCH v7 4/4] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current From: CK Hu To: Jitao Shi CC: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , , , , , , , , , , , Date: Tue, 25 Feb 2020 15:33:05 +0800 In-Reply-To: <20200225064638.112282-5-jitao.shi@mediatek.com> References: <20200225064638.112282-1-jitao.shi@mediatek.com> <20200225064638.112282-5-jitao.shi@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIEppdGFvOg0KDQpPbiBUdWUsIDIwMjAtMDItMjUgYXQgMTQ6NDYgKzA4MDAsIEppdGFvIFNo aSB3cm90ZToNCj4gQ29uZmlnIGRwaSBwaW5zIG1vZGUgdG8gb3V0cHV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