Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp291644ybf; Thu, 27 Feb 2020 21:24:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxOr1qDOVe9cCo96xstKYycu6EVn1LL3+TKavp2eP9ThxpF4NBsK9J29QsCaPda4DLxfFF1 X-Received: by 2002:a9d:638f:: with SMTP id w15mr1212371otk.239.1582867498090; Thu, 27 Feb 2020 21:24:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582867498; cv=none; d=google.com; s=arc-20160816; b=b5fQRZByKWYnzV+XZcLXoluosV9UNnFKH+Lnjyz7wHafIeR06EM4LEa6Q1dWznHcIf A8PqDfrP7RZr0De2piNDt583OMm+bKq/8p7zDYjqaFjlPZpcHvxhShAivLBm1DEt0Tc6 T4g9nc2NL5/AqI5Q/XTD/4JScxMAlUAgjeAMXu88ebN65Ej0xRb7PT1qD8hxPZpnle3y c5giF4ibTuAfzWdyzpLI257c1IpKcy8emTGXMsAL1/Ekl23KC2yK7qLzNTnYzerh5rm+ rVvMlL7lopgr2uR0fy7nyhNiMQeYoxj0XDbf6xvkK+lDxC8v5fGaa5cj9F65ytgTqPcb dgwQ== 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=5cFcI6oejfKgvdPigAG7lz/WkjQ0ZoTObgew3f2ti/4=; b=bqvDLvYWO/6o+KXbZKI9IV95dDSJ2YbEY4+CyJNzuoj8sAUkVUgF5le7nb+e3vSCaZ PODMzXu4omBtYhMqmiNd8dzNm/XFZhn01nj6x7SkHqlnNEHjnPZdKWPuwIQZrRCRAnE/ sBO9aiuNGD38TBLVD6CG5wRp90//G8rY4iIowWk168laixk7JtM4gBMBaPA1pJfzsfbU oFvZxu5prSNr2GyslJHVbQFGtL1JfjcYJL01eRMCrvy+TJJm58+sh/W3vaniywUUwSK3 R0ucwgvXYQkYNl+QgKT0V/vR8pdcUKaiEsWb3QZneYNjAL0wP1Ie3hjzlNj1bGiPXgVL Pgyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="OibC/kNL"; 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 d14si899462ote.195.2020.02.27.21.24.46; Thu, 27 Feb 2020 21:24:58 -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="OibC/kNL"; 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 S1726589AbgB1FWu (ORCPT + 99 others); Fri, 28 Feb 2020 00:22:50 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:4369 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725794AbgB1FWt (ORCPT ); Fri, 28 Feb 2020 00:22:49 -0500 X-UUID: 7992e77d8a314341972fcad71c0e8d02-20200228 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=5cFcI6oejfKgvdPigAG7lz/WkjQ0ZoTObgew3f2ti/4=; b=OibC/kNLmJADxfO+OC3xFgDxQ9MEV87pexgsFFSwGCPEefpRNpI7TRiY5Lt4/dbV3v/8tHmLDKeV6cV3OZAqN2A8NUM6Rv9ykEpjLBzn5ZSOaK4JHs4lqTcky0ACpmq4W5mL4Wu/9hnXCLhCy0TTmKxsa0s3oy+xLXv5Nj6hNnA=; X-UUID: 7992e77d8a314341972fcad71c0e8d02-20200228 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1474536278; Fri, 28 Feb 2020 13:21:44 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 13:22:18 +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; Fri, 28 Feb 2020 13:22:07 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v10 5/5] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current Date: Fri, 28 Feb 2020 13:21:28 +0800 Message-ID: <20200228052128.82136-6-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200228052128.82136-1-jitao.shi@mediatek.com> References: <20200228052128.82136-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: F98AB8D0A87863EFA2C70BBE779F1DEAF0C572D9FECD78516D03F7B0CB365BA02000: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 aXNhYmxlZC4NCk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