Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1789794ybv; Fri, 21 Feb 2020 03:32:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxi3z1boRKyD0PYlhPtjc8FKeKhqhGgtUAh6vQ2YEjWaGz5AeER/tT+GaN8ZWXRXakzxUDP X-Received: by 2002:a05:6830:1691:: with SMTP id k17mr28586604otr.282.1582284759629; Fri, 21 Feb 2020 03:32:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582284759; cv=none; d=google.com; s=arc-20160816; b=qM7kYNYAJLGfCB4VQc4j7ivfX/cmz5pWmsklnN9KEgfhnCl3M/RBPJbDpCtkYS9IP+ Rer0rI0MjqUbhjJLVQaNOXcEKbHxE2PTGjKnOeA+MQPK77XpbGzmA1rMHIAYWJAxaNAF utTfphLVbzm4xx06BsRFc9JaBsibYo9Q+/ULeLe/at/qvKsTHnaxkSj+yucUYxAp5khV NbbXljzqgjHu5QVTBJDAb9+ziAosV1UgYyqdCR7Vcd3NDLPvXrvhLEhpGE5mN5wIorPD i4jzsusGhdP2s1YYQVtO/MD+6t0Bc9U+IXkI78INs8nvzrYcMboDnyYXqG6tERhpVNkA u9BQ== 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=EXe7y+o2d7iRqWPavTvifj5buUeUDoNRZjUZQ38OTRs=; b=yh9i69YrEmYSvwkfdeg2IZ5pTcTA3mWcBSKTbDQ42Ech0v/ZP38Fen77PbiNq+8yZF nnRCXHQDIKxouqabX6NHXPyw3Lu9UCdT63if0mFWWFFae/JhDdKGtveRklcS1IaELBFb nw6WZu6DUswvVDEczSCvo7pYZ5fVDqCWp+YUcWbWbxeIP5IcuK7TxiGGFvaQPqi7xvQy 0vjEnISp3FEM5OX0jN5dXSbOGzcZIxJS52nNOxsxqRUFHW+Vhp7CsGGO7fwlYYYlVLHs WO4JELlLS3+PZNo+SAp2Qv0ThL1dOqpjYlHtqCiiWEnS6kOZZs4St7NSR2CXfhF5JCBC BhPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=NnLryxhD; 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 l80si639773oib.268.2020.02.21.03.32.26; Fri, 21 Feb 2020 03:32:39 -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=NnLryxhD; 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 S1727489AbgBULbY (ORCPT + 99 others); Fri, 21 Feb 2020 06:31:24 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:44920 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728018AbgBULbY (ORCPT ); Fri, 21 Feb 2020 06:31:24 -0500 X-UUID: 930a4b4ddf6244fcb9076d480a603978-20200221 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=EXe7y+o2d7iRqWPavTvifj5buUeUDoNRZjUZQ38OTRs=; b=NnLryxhD7hWPE9mnEDLPB+C6iqEmL1G+JR2DwT07Nw1nOSILg87GT0/B0GrXYFVumR4I65f9HxR45hlIJo8mVE1YvLeV6cN1ExpxJ7lUiBRh6RQznltIlwnCEroWVAvUNgToKHH+RdMh/hQt9/bhWiy7SUVZklEzzBLQj/RwaeI=; X-UUID: 930a4b4ddf6244fcb9076d480a603978-20200221 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1200173710; Fri, 21 Feb 2020 19:28:39 +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; Fri, 21 Feb 2020 19:24:02 +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; Fri, 21 Feb 2020 19:27:37 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v6 4/4] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current Date: Fri, 21 Feb 2020 19:28:28 +0800 Message-ID: <20200221112828.55837-5-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200221112828.55837-1-jitao.shi@mediatek.com> References: <20200221112828.55837-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 9A8E6822595FF18CCA96293E9D8AAB0CAD367449040DC0B45EFD2AD7116372492000: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 UHVsbCBkcGkgcGlucyBsb3cgd2hlbiBkcGkgaGFzIG5vdGhpbmcgdG8gZGlzcGxheS4gQW92aWQg bGVha2FnZQ0KY3VycmVudCBm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