Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp232263ybb; Fri, 3 Apr 2020 01:29:01 -0700 (PDT) X-Google-Smtp-Source: APiQypKOr9D8MI2m/XAPLqvsd29j3DL8CSx4FAboG2cL/uOvkisS4bIr4HjL1kIQQZKjp0XwIUjc X-Received: by 2002:a9d:6303:: with SMTP id q3mr5667131otk.296.1585902540822; Fri, 03 Apr 2020 01:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585902540; cv=none; d=google.com; s=arc-20160816; b=R8lDYl/CtXvD1tJPH5DiL7oZj/oNlFCWvLDtP9X0MSFPVTYgw3mFuuNJwnPLMCI3YM us3b/TCz8F2FaIneOTXxu7m2NQ5u+Kgd5Ft2AGtLt83L0H0J8y+ujiCKUezLFkSoarmf OzQm56iFEbUte1hRQz+QVzb1fz2glbCb5QSwIHZVJwHyakkkBRnAr9IZeAYQLc8l8JFc u/erA4GjmgJLxYOuEps5paFCln21iReNY2To0ETNlIJry5fd/iD9FlH2HYHGrd/HG3Qs i0a0SqKqVJLf+hmaEQ6yy4KoLJVi98wFP/U+G0/D6qupg52jvzTH+G1WWv/K5vNDk5JG Uu+g== 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=SXMSLBQsSUZgUuEZUoBkJ70NApTii4m2ZG6S3nFKqQw=; b=m+RfBYGKHzx7mDGVjGX598E5zYckfh5q5AT9nWuOkQ37cy+K7YWGA6VKPePaOd5zR8 FkTDYn/otwl4K7kYd0lBMp5bXM0gThtKZzGBbFUJQpASdGvZyLfSDUPRwygtVxYBXL1V CWRIIWYJkpQQg34LLUiO+1KBrPyWUNEPZtt1JUKwD27iHFsmI60YrVNIApVpCck7Ud/t +yn/8IrioKUBSc+YpyYloRygBInUuv1SSzlQtTdgIdV0hlPDhRcZiYUollTsYg0RqB4s mjLIYstpOTvQTsQkML2LhouCxrUl0wokpU+GEVkRVKDgJ26DOkzNB13sCq7z67DlE1/s AFzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ocEDhnna; 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 j15si3554794oos.59.2020.04.03.01.28.47; Fri, 03 Apr 2020 01:29:00 -0700 (PDT) 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=ocEDhnna; 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 S2390420AbgDCIEI (ORCPT + 99 others); Fri, 3 Apr 2020 04:04:08 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:41509 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727431AbgDCIEH (ORCPT ); Fri, 3 Apr 2020 04:04:07 -0400 X-UUID: 62cdd6ca889f49078ab85b706985f965-20200403 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=SXMSLBQsSUZgUuEZUoBkJ70NApTii4m2ZG6S3nFKqQw=; b=ocEDhnna7MEmJFSM1HpX3cO5awiWG52jGjOfBbtvblABStTwQ/Z0Nfwy6vDGSG1gIZ2/AGYB/AC9Gkd0eW93mTcxGWFlA9b88jmVm7pOqatBRzz+V/eECnCXTTnp3Sa968z3EL5yT2ldkT7EGqpqqHW2+iVxMBRrT+62QuwSLbc=; X-UUID: 62cdd6ca889f49078ab85b706985f965-20200403 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 487088426; Fri, 03 Apr 2020 16:03:59 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 3 Apr 2020 16:03:59 +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, 3 Apr 2020 16:03:57 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v14 3/3] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current Date: Fri, 3 Apr 2020 16:03:50 +0800 Message-ID: <20200403080350.95826-4-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200403080350.95826-1-jitao.shi@mediatek.com> References: <20200403080350.95826-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 1F8009A16C3C12A076DB5621D0BD997557D38E7207AD03FA9FD39F901D19D8562000: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 aXNhYmxlZC4NCkFvdmlkIGxlYWthZ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