Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4629457ybv; Wed, 26 Feb 2020 00:13:18 -0800 (PST) X-Google-Smtp-Source: APXvYqw3t/glt+UQX9omTxhhUA1B/ulmoSAlgWBzrg1gu0CCQUukdfCrymqhVCCZ7HNYWBsdUC3/ X-Received: by 2002:a05:6830:1e2d:: with SMTP id t13mr2120055otr.128.1582704798761; Wed, 26 Feb 2020 00:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582704798; cv=none; d=google.com; s=arc-20160816; b=HyWJ+t8wKCOrwkyoKc8J7dXYQSe/O0VOwqfMGtW0AvqF/16okpAyR781DZnEpFwIyM q3+zWQZ4iEh1aUxK1yBDHULP8Ff7P9Kpl023p4uqSBwksQYZqrRYzFRZlZCzkvMUdmrY qlEOxKg6YLIbf3f5c7lLvyXg/rParKf4jcWUJQIjdg6eIk5msLT8CzAWdgA7IkXUcuGZ zP1j4/9O6tBfOnOlthQoSLCYFAE6nQLd9nwRuVFdI+3Sfv8XudQGPBHslgdRIB2X9gOe EXSAGx0Nj2/rii5uvbjDgv594CX93TaGNlrUu9MBtAbSSMMg1u7+IoVMFyEx3dNUNUUr AUPQ== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=noxquxXfq+6mXpmYdqPQhbsR120SnaVrynFCGzYug/4=; b=Fv128AKXPqEHuANsr5LQxc+dTVYMW9qMVvwjz8Jx3+GMSl4RMfYACdCZGMbvU0FKCH G2C2ylObNY/B+ufQxlq/dO5AqoXf7+MiuXeE2MAgUSrBzGpqHa51dBYg8aP//w6PRiXY d7vO4d37sOPmaHhz90OOBdZDwBIzJ47ylCcLYXrmuK7HzV7zRmbtyBc+pqzLuEZRX7LB hv0Ip2v/PRI8MlfWQ8bjvTyKDBHyQOfyAlrY66795ErVGU2yePAqSKyFUYHCQd31tdaZ 6moUcNXqCFE/gFcLuA7tgAs3TeDlrL55K4rjTfLTjT6aa7+VVPm/XOKfvBrmntsQfHzf 4Kzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FrduCwNs; 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 m19si768314otr.18.2020.02.26.00.13.06; Wed, 26 Feb 2020 00:13: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=FrduCwNs; 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 S1727554AbgBZIND (ORCPT + 99 others); Wed, 26 Feb 2020 03:13:03 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:44698 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727314AbgBZINC (ORCPT ); Wed, 26 Feb 2020 03:13:02 -0500 X-UUID: 5db3d9db1ab84951a9bbb42ff4760adb-20200226 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=noxquxXfq+6mXpmYdqPQhbsR120SnaVrynFCGzYug/4=; b=FrduCwNsqTc82igR71qirzITQlHEg0jpki5wYi/J0KOAA3P23LOsbUYlIkcs+Ndw0JEqr/6qWjJrfp3ptbCqN7xBg9vyTbGPVreVIk/L6R/nCwna4Mbj1Q4qEgq8jwerPKbv5gu8hE9CKjGko4U/GeUY72vfJX5FkLDQ2uGbSXQ=; X-UUID: 5db3d9db1ab84951a9bbb42ff4760adb-20200226 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 805123605; Wed, 26 Feb 2020 16:12:59 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 26 Feb 2020 16:11:04 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 26 Feb 2020 16:13:05 +0800 Message-ID: <1582704777.11957.1.camel@mtksdaap41> Subject: Re: [PATCH v9 5/5] drm/mediatek: set dpi pin mode to gpio low to avoid leakage current From: CK Hu To: Jitao Shi CC: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , , , , , , , , , , , Date: Wed, 26 Feb 2020 16:12:57 +0800 In-Reply-To: <20200226053238.31646-6-jitao.shi@mediatek.com> References: <20200226053238.31646-1-jitao.shi@mediatek.com> <20200226053238.31646-6-jitao.shi@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 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 SGksIEppdGFvOg0KDQpPbiBXZWQsIDIwMjAtMDItMjYgYXQgMTM6MzIgKzA4MDAsIEppdGFvIFNo aSB3cm90ZToNCj4gQ29uZmlnIGRwaSBwaW5zIG1vZGUgdG8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