Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3467055ybv; Tue, 25 Feb 2020 01:51:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzZVF9x2/+0lNNdI6c/3y0vbimVP8E8k1Ym0N3g5byliBRKJOPW9BBGbu/w5ZM+DgEVBF3X X-Received: by 2002:a05:6830:1185:: with SMTP id u5mr40734973otq.147.1582624269632; Tue, 25 Feb 2020 01:51:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582624269; cv=none; d=google.com; s=arc-20160816; b=Lmu/BE8gUvvbS+UfmxXVNdPefIB3yc1E8jz9Zfk68rB0RjO4hO6CSU6Q5+fuX+p+Kt bCYCEcXYvm1r3mux30sm0wufg25r7XsN/UkeeYC8Yk0ncOLzt4iZ5TGQ+RADG85EIM+b LoPKxTbwrzlW/ZBDPovWddhYPFrPRbz1SQabVDPBc5WPK5CFjIEOBp0Xdi4V8sHBm/V6 gXuEbG0fDIlK58jXl8zUxymNgaD5yX43TkqPqeIiBKGvBIyfF+CrU0NbWXrpMSdd5Yxa tUkFPUs8tuJ7+/phD2Qooy+t5vz4z0+gsciGUNeKhS1jCtB0WkvU1rQ3QhD2SrdX+bvD 2ZGg== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=fU0sCeMUOYxaLBph7IxCr2GVXhdPeawGgPgZfH1gSLg=; b=EWtT4v7q+eCtNYRtYZpLyTHmUO8qJ2Sfoufh9dznU+UB5c1PuBtvQsvD4SGVIh4Tq/ +tJZy0s6DqJTgKQlA4UfxIYwjavWAube4yt1t0KW4MltzkM4TF0gTrbec4XSvT24qiTE loa4R1YlEbMTYro4AhJqNpbCh6Rk5gJbzrcIpdH83uen4xjIeaCJ/H2Hi+tMgT4gSzon GfqevXuOt0T0oDXwKJzVBW6gxvlQ9q87evF3cF6Ur0FiqYw/ZlxWEpotKRCNmLq3ZH0n asKRItXp1fKDp2A6fQrt1lb7PL1fZwMoFAaEXF3r+9qZLTkvFTz6joSbqSDBg5Vq0LVZ E7Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=sHxKXN27; 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 u16si6782091oic.66.2020.02.25.01.50.57; Tue, 25 Feb 2020 01:51:09 -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=sHxKXN27; 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 S1730019AbgBYJlW (ORCPT + 99 others); Tue, 25 Feb 2020 04:41:22 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:7811 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729661AbgBYJlU (ORCPT ); Tue, 25 Feb 2020 04:41:20 -0500 X-UUID: caf6e8a489854215858d2fb7570d4195-20200225 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=fU0sCeMUOYxaLBph7IxCr2GVXhdPeawGgPgZfH1gSLg=; b=sHxKXN27EnXozaTKyoCBLmm/w42UpCtG4DY+66g3gPnEh6ZyJ+1k+nd3ia+pwjRlpv+t6DGt/NSz/iJwS/xtqiLNwPQgoAPtJQAUuYghSPJVj2ph0Q1/AraoS+BqOCw4K0zVpvJ37ghimEt+B6zftTAH9ijW7DLJN+7mlIKlRJY=; X-UUID: caf6e8a489854215858d2fb7570d4195-20200225 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2107293855; Tue, 25 Feb 2020 17:41:16 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 25 Feb 2020 17:37:19 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 25 Feb 2020 17:39:54 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v8 7/7] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current Date: Tue, 25 Feb 2020 17:40:57 +0800 Message-ID: <20200225094057.120144-8-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200225094057.120144-1-jitao.shi@mediatek.com> References: <20200225094057.120144-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 02E7AD6AE287394422CE81744E5DAE6CBEC51CC0170FDB326B645978015C5CD12000: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 Q29uZmlnIGRwaSBwaW5zIG1vZGUgdG8gb3V0cHV0IGFuZCBwdWxsIGxvdyB3aGVuIGRwaSBpcy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