Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4497346ybv; Tue, 25 Feb 2020 21:33:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwL4kfiuG+RgTQRrkmMHGAf4w5NVEvxHFx+j5CxJ4vC6XusOvgC5K62hYE9cp66tjemdNh+ X-Received: by 2002:a9d:6e98:: with SMTP id a24mr1601821otr.53.1582695222635; Tue, 25 Feb 2020 21:33:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582695222; cv=none; d=google.com; s=arc-20160816; b=IIzkj+q1PNUrQFblHQOMiYbIdszs+4pVD5fFRyTQBg905TjSjJFak4EsSlH+2lIRej nN3cInWYNzQPc6HdIU6pSIQfwWKi4xxakcsDos5ZEVOY/a1XDXreTJjfGATHlYn2i/r7 EtonvKq+TTrolcsKlPhsglYI1CFdJ+HF4bFa/TDhXpfifBT+tgklADN4mHgYytCLQD1A w27XURlB3aysbO5H7jd9mw4hZbDVs+F/gDcNUJtRswoPiIaAbhZG5jHjs24/sBciyKeP Y4RkYKhbEqdXhkTlGqyOyFyq40Bt+XQ7mW6nYI0vpqTN8RYNqcjHGAmTMbhMJH+mwJAK ZYqw== 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=x7STFyQuO/xyu34ZYtZeHjDau3Np4ocLuWWyy6b0cAI=; b=iS31G89KqU5R7ACtl5kx5Jl0NGB88K/c5fouBEFmOwadCOcc1LU5fVHCndb5wTzm0T P44ndcIy0Seg9IQAEbDI5KVWcocdv64OxvxgiRIeqq/rknJBBp5SkRXOQR4v81nWq9R3 U2WX+3iBtOWzDbKYshZssZoP8BanEgLhD+hPjq9zaroIffDoZna/7wyy1aBw0Lk2h+7+ geFwJCKawVIpZwpr7QkDDtIdYR6eQ4UESmNdEcwaFRbHqeET3ozgOEQ8eJaqg6qngAz8 bVaJfPKuyyH5T/qXYTMV3yukEJhL2CmRNd7Xg2YwrKj03RxCoqMGQETax1l6Qc5w7+Yl Xllw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="X16CoxP/"; 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 c4si1112577ots.107.2020.02.25.21.33.30; Tue, 25 Feb 2020 21:33:42 -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="X16CoxP/"; 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 S1727073AbgBZFdN (ORCPT + 99 others); Wed, 26 Feb 2020 00:33:13 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:21882 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726112AbgBZFdN (ORCPT ); Wed, 26 Feb 2020 00:33:13 -0500 X-UUID: e4ce7581da6f48f282f867ccedf16f1e-20200226 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=x7STFyQuO/xyu34ZYtZeHjDau3Np4ocLuWWyy6b0cAI=; b=X16CoxP/dyFBzfjosrCDBmmZNMDYmZCpIhNWGFH4XJ0aTsHA+9gCNrsq5wFoNbHOHGxDfomaJEnezXW5C3vzR7JT02oNu01/7VpioFj2wOHes8lWZ/LZMfsmNqK3DGzcPPFmPMyK1cAIrWCgBB4FxrzKfJF+fnabxQpdtPIEYO8=; X-UUID: e4ce7581da6f48f282f867ccedf16f1e-20200226 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 973007024; Wed, 26 Feb 2020 13:32:53 +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; Wed, 26 Feb 2020 13:28:53 +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; Wed, 26 Feb 2020 13:31:28 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v9 5/5] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current Date: Wed, 26 Feb 2020 13:32:38 +0800 Message-ID: <20200226053238.31646-6-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200226053238.31646-1-jitao.shi@mediatek.com> References: <20200226053238.31646-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: FE2D5650BCB40F1CA1B9C24BBECF52B836DCD3F5FD44BDAEC5892942C903FDF62000: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 aXNhYmxlZC4NCkFvdm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