Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3033000ybf; Mon, 2 Mar 2020 21:30:18 -0800 (PST) X-Google-Smtp-Source: ADFU+vua1RaYJ/5DwLGfZEaGpnqgy2DK0vD8/4QD1FRoUAEjdOj3IdOhzLDMMg+5BhU/kJKmJvmB X-Received: by 2002:a05:6808:610:: with SMTP id y16mr1358150oih.89.1583213418051; Mon, 02 Mar 2020 21:30:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583213418; cv=none; d=google.com; s=arc-20160816; b=hM/5Z89Ut7f75+Unj1M5UXc7WzFVho0vx7ci84kHRwvUBjR9rAlmjt+63tR0C/vtBs eZvznQBqgLn4Jl81jKn9UnqFTqjKngU4gvaZ4M9e0OhPeF5W0AXVopnLUNJ0SIZ+IgQr Oy8PkhjswQXejj/8a3nFNQoPsjdaJyTnGKLwArdV76lMvvcX4numJpWCtJdEY0vN+rUA iU5B7X+Lfoh9KsC96KlKhWE7Xmm1IP6F3qN6PjImQOBZr9zAPLy2CCKgpBwCr+Ysw5Un 1cyKBENDuBNeVqOup6rm1LCPLyzPOuD93xmuKcSFhFZc24E/sJ8fp0fObLTBKzTXhjLe 6Slg== 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=sB31c1utjXoEI0bkxHgvZA0r/O+d8TC2fbnDDVG92d8=; b=0w48OhugyxymWwEXZKV3fxPSG9zDNvVUXOco3WaoSKdguBXjweF23MdO01O9V2z+iG rLmweXVdrhaFAEEnPhVoTMdnVGBybFP0WIyMem3P3WchJAu6DHucpTTwJdjRPbhg3wcI 4uDDgT16KPjZyG3c6BfVFDy/O2wucfhNdiKxq8yO3ywO67bsNWUI2MATjBoFNOTjnkOZ irbcdPcddxe8P30FFNIWWtBC+RrAwuYDq0p63hsr3p6nTRHtXeXz+BABpgsVPM0XJ93n Hkg4W+RFqvybLH9i82A3FtHVViaZmFbDdN+G1N8KMexPBaqo1jQfSHfI/OhDI5wD0ZjE PmDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=RLCN62+1; 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 t12si6490399oij.179.2020.03.02.21.30.06; Mon, 02 Mar 2020 21:30:18 -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=RLCN62+1; 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 S1727470AbgCCF3L (ORCPT + 99 others); Tue, 3 Mar 2020 00:29:11 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:58435 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727174AbgCCF3L (ORCPT ); Tue, 3 Mar 2020 00:29:11 -0500 X-UUID: 45cf88fcc2b047f2bbd92d85db28eb50-20200303 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=sB31c1utjXoEI0bkxHgvZA0r/O+d8TC2fbnDDVG92d8=; b=RLCN62+1nXVlFbVoOONZPrKcEpjwpH18fb0tQ1Uzx7AEIjjwyZrDne8Ed7wbL3UA850GmC4/DQUoysxzV9t6GW1kxyFlqmgvQZIiOCDiqYazlYf20omM7u4q2IF2bPS5Bx4J3bHznYpFpAfDxcfmHJ4T3PQ7Y2trnMk1b1L11Kg=; X-UUID: 45cf88fcc2b047f2bbd92d85db28eb50-20200303 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1542098083; Tue, 03 Mar 2020 13:28:12 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 3 Mar 2020 13:23:39 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 3 Mar 2020 13:28:31 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v12 6/6] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current Date: Tue, 3 Mar 2020 13:27:22 +0800 Message-ID: <20200303052722.94795-7-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200303052722.94795-1-jitao.shi@mediatek.com> References: <20200303052722.94795-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: A7DA1D6B70A54B88BB92C62DF5B57B82FE7C188A7E6E462BA9E92C17D90207F02000: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 Q29uZmlnIGRwaSBwaW5zIG1vZGUgdG8gb3V0cHV0IGFuZCBwdWxsIGxvdyB3aGVuIGRwaSBpcyBk aXNhYmxlZC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