Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3311748ybv; Mon, 24 Feb 2020 22:47:56 -0800 (PST) X-Google-Smtp-Source: APXvYqygFO8QC8Xfj5V4VUOdZRiM3EJZt4IHqTAgLyFbWm8+XROKqrXDOZkSUgGQbcvyOnzhRAfQ X-Received: by 2002:aca:bc0a:: with SMTP id m10mr2321723oif.77.1582613276408; Mon, 24 Feb 2020 22:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582613276; cv=none; d=google.com; s=arc-20160816; b=PjN8xlVEiiIvysQdXbrMNf8fV68SGmTqRbAqVXrb2A8jh/8HTcD1UFuyG/Nv+HP4IZ bi8BgVD/YnwiCc7shlqr79RQh6lXOb6WL0GuFq9Xh8N+d/EvtJm1vOz0R2O6oK1/+PTa T+8YiHA6Fs3KEKu1O4+5gFus5chzyGXcJQIeaSjYMJdB0S/GBDCHSf/gherq+SUlPniU 53BpqkrkD+BzF5Oxg+xNc1tL6bLzdBomR6f+jIlGYsHNNt9jV21BL2hMA8KUGqsIKTK8 BupIyCSE/SpRh9NQSMpt4VuvRDMhFZh6ADEU+c6E10FoAi5IxC/94IcBY76qTEbQaawx irCA== 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=ah93O+SRvsLWOuwyTs14lXjM9jwFW/4/KiNPMynf+hs=; b=uZXpFhY30LP3CiU4iXCPGpGoBKXvfP8EDUiSyFbd5vV0qgSAyDwtez/D/etCPfK9Tu ACvFa9HYp1GbpHSmbkG9nRd8OrqVO8eDgoy9qip4id0tO99tKnLdsmGs1tW4LxIX6Jc1 OUprC3szuApm8XD6x2fJGapQiNn+icRJ/7utldZMo91rLmyoebD6/92pkE0ET2ayqiSQ fDI7BYbZWopBpKhXs2GpVgTcxwV5jugGGyq277NZ6v4qW6c5wXfuauQVA4lOiN7PrPrX 7FyYaCDwTPDYakdX+ETlIOg89f8HN7YYxIRZeKoa70Ipsbe53n2cU6rwyXX5jUl1fipt L5Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=eALK+AzO; 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 w20si6166305oic.103.2020.02.24.22.47.44; Mon, 24 Feb 2020 22:47:56 -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=eALK+AzO; 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 S1729205AbgBYGrQ (ORCPT + 99 others); Tue, 25 Feb 2020 01:47:16 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:43864 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726936AbgBYGrP (ORCPT ); Tue, 25 Feb 2020 01:47:15 -0500 X-UUID: d51652eed4cf43c38c8c9510bab19513-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=ah93O+SRvsLWOuwyTs14lXjM9jwFW/4/KiNPMynf+hs=; b=eALK+AzOn6zcq9t4LsQPV7Z7W+m6XoFD+kyabPd2LALvrqjF3F4uNU1u/p45qgSsIgyxvjZdI/NDYxEFReP3j+tRxpPgsK/F4eB9kytNpzD960DR4v9WfXdlSy8Sfs5UbqdVlKwkzV2Gc1sPHi9yAoWoDxFf7G9XbZrFcx6o8ZQ=; X-UUID: d51652eed4cf43c38c8c9510bab19513-20200225 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1254474963; Tue, 25 Feb 2020 14:46:50 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 25 Feb 2020 14:45:28 +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 14:45:30 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v7 4/4] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current Date: Tue, 25 Feb 2020 14:46:38 +0800 Message-ID: <20200225064638.112282-5-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200225064638.112282-1-jitao.shi@mediatek.com> References: <20200225064638.112282-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 2CF4D1DC9803C00A81C421A3E9B72BDFE2CAB33A816F6AD4A1F35BE5DCC8070D2000: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 aXNhYmx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