Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4342699ybv; Tue, 25 Feb 2020 18:13:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxGAb+8eCZvh/Pco5WDm7cgkO/EWyuHcbgiYJyFABaVcfY3HsiboFmkBBpJszgHthAxMcoF X-Received: by 2002:aca:52d0:: with SMTP id g199mr1303117oib.153.1582683186857; Tue, 25 Feb 2020 18:13:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582683186; cv=none; d=google.com; s=arc-20160816; b=MoMGTi3rhP+MHYn/NQeCc+r61ArvlWZKkYJBBJtM3mZbPetOC6vJ2t/KQ4ReDGyh6N bDJMw2vWltkhqFGj2s992tVLTA2xDb5RmJr8M6JkOqYBYcuf8Tdi4QbLt8duAD7YPyvI fFYCqN/jiYhSSpXZ8gXFe3Pvzm4dQRuOrKwdeLfGOwh2WCjLLp8tqBtSMXJ84H0HN/Go 6L92hTy3O8D06DZPHm6Zk/2imqDWwXB3jmys8L2D5985ET+YLXUBtWFRu2oPIeZrdfJQ JTLyN4ewJuCvXU8L/BehZTPmFUC8EOo9rjOJe6tI55LZ0/wfmXwcSEsO9FRbOksJjXC/ 7UFQ== 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=5gQw0zrOUHDrCBSICicGAtsSYh73NvfJUD3qiJATi0Y=; b=cPrPTr55RCa9s7fYFQX3K8TgAhjTwY6RFt1QkRf3g9wnwd1742ql5lpoINJKa9yUOA jqmPUwp/h6u6+qgP++haStKAoK2+Etcxa0pNbTkb2w9xtqCJdfAQP5lfmV2CL6kvA0k2 T+vF9V+7/pAi2ZoYrBM9miqh/aFRAX+SvOzHqb1+ZIHW4tgqJGZo0irCmxZHHlTl9T0w 0a08U5thhhBhCPdDVBS0ee0AgAG5fsWz/XXa5HLnT8BMpGG1kiQ17YOfhN3a9nSJtdJE ZsM93k9tNBoL1Xm9acmofJ6fJkbLu0QFtntBWXp+jA9q3oyqh9kv45lssxSC2/v611k8 Jk5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="mRB0wEP/"; 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 a22si286960oii.98.2020.02.25.18.12.54; Tue, 25 Feb 2020 18:13:06 -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="mRB0wEP/"; 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 S1730127AbgBZCLs (ORCPT + 99 others); Tue, 25 Feb 2020 21:11:48 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:27671 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730008AbgBZCLr (ORCPT ); Tue, 25 Feb 2020 21:11:47 -0500 X-UUID: 533e0d398a674f21aeddba13e5c13fe8-20200226 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=5gQw0zrOUHDrCBSICicGAtsSYh73NvfJUD3qiJATi0Y=; b=mRB0wEP/F5vuVB6TSohC4dFayY0au+kOV627Mi5JbYjNnp4KWseNMt7QXL3bT8VjzqtlZO/4aabqvC61R4+kbXNs7G2U1msD30/6xuzKNZu/K38UfihDUTvJz4gerbYpitoott+dLgEuGsfe4VcVNH+6ldtfuilakC3baz0zAGM=; X-UUID: 533e0d398a674f21aeddba13e5c13fe8-20200226 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 235963415; Wed, 26 Feb 2020 10:11:44 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 26 Feb 2020 10:09:08 +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; Wed, 26 Feb 2020 10:11:51 +0800 Message-ID: <1582683102.16944.11.camel@mtksdaap41> Subject: Re: [PATCH v8 7/7] 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: Wed, 26 Feb 2020 10:11:42 +0800 In-Reply-To: <20200225094057.120144-8-jitao.shi@mediatek.com> References: <20200225094057.120144-1-jitao.shi@mediatek.com> <20200225094057.120144-8-jitao.shi@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 23A290A4F303B13413DC230C06E07F5D9F1D9150BAFE1A2424A844D25E8EE80F2000:8 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 SGksIEppdGFvOg0KDQpPbiBUdWUsIDIwMjAtMDItMjUgYXQgMTc6NDAgK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