Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3262541ybb; Tue, 31 Mar 2020 01:30:37 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvjz352Ye3mtoevGVMIMRNYFBA6pNM3AugOtC8tW708HRdbWGRhPoTM4BLZOVc0kLFwgKrZ X-Received: by 2002:a05:6830:1495:: with SMTP id s21mr12821000otq.35.1585643437109; Tue, 31 Mar 2020 01:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585643437; cv=none; d=google.com; s=arc-20160816; b=Tfz3VUuEq7r0hW01oDBSx0i1p+0X03jzDz5xI3RegiTd1u+JQnCXK6+moD5dFk9q+v pm6dMBh6dpbXAOeeBhOH09ZiEnuOUyhQO0Frr/DazyIH8cfGdjkQf5+aH1Zi1X/+2FAU pTpKsfq64YYds2eHX/LOW3BYnkvue0pMrSa5gkRzIkWPrNIsBLtRVJoQOiwsDN8enko/ qz+jlNdigtojBtOcjw5ctdmhlSlcqUppZQXVyZFuYL1HPZ5Z+cC44AP91AUTZSb0wxW5 1OPyDPt58lGznk3UodTUx/GI6Wuje2sKrIfYrLE1gyVPfXHazX9kUAoaqFzg3nokbsyV e/sw== 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=YQ57/0uYu8e2rMbWbbfkX9m+q6kPZQyOhAzfeLnK1/g=; b=rz+yktZr6i0ZK+pZfKjyK6ne9cQMbrCNV7MG3+Yi8MgYQXuW5SMyFSq/JXzaSKgKVD SiLVfmroYNGUMlK6bjiSh1jSsAWsLZz3UjLtZ5/DCrGS+F04Fh1swXG6246vZyVOtwLm EwGOQPvzKBX/A4SyOvDnJzVOAH5Q+x3U3spA3rtSDmUeO4L34uDp2EzfPcfKfW86NnwB WLTc1JA304avRf1l1x+LhjYL2RZRyx/C+L+xBFuEwKQykjd2zsShsaoAy1UMYz8vinGX 7Q3aO8A4U05vdB6TxgvDzSFkhNVzKBA0c5vmQgS+YCtwz7RRB0CtzCFIP+B8Rpw/+Cq/ ng6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="KpdNB/QG"; 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 u15si6878508ooq.37.2020.03.31.01.30.25; Tue, 31 Mar 2020 01:30:37 -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="KpdNB/QG"; 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 S1730249AbgCaI23 (ORCPT + 99 others); Tue, 31 Mar 2020 04:28:29 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:51101 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729795AbgCaI23 (ORCPT ); Tue, 31 Mar 2020 04:28:29 -0400 X-UUID: 12613cb0211e47778dd9565e692788fb-20200331 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=YQ57/0uYu8e2rMbWbbfkX9m+q6kPZQyOhAzfeLnK1/g=; b=KpdNB/QGALXWhAauazNBulgahq8crIoinuziaDxhTgfvtR3rUq+YdCIXDDM/nQbM14Ts0n96xFg6Tukv9IT7bGRB46M8XkxwLmNsH7+te5arUBJ5s9pVCUh6ZZzxZlzPBL25YK4LQ2i9nLI9mZxsKfx0mpF6lFn9G8SK2qky79g=; X-UUID: 12613cb0211e47778dd9565e692788fb-20200331 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1445999765; Tue, 31 Mar 2020 16:27:59 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 31 Mar 2020 16:27:59 +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; Tue, 31 Mar 2020 16:27:56 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v4 4/4] drm/mediatek: config mipitx impedance with calibration data Date: Tue, 31 Mar 2020 16:27:25 +0800 Message-ID: <20200331082725.81048-5-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200331082725.81048-1-jitao.shi@mediatek.com> References: <20200331082725.81048-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: AE94F9B996E80ACF14AC902A5CF3432598D7C8C9E609F120D86AFFCA9479468E2000: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 UmVhZCBjYWxpYnJhdGlvbiBkYXRhIGZyb20gbnZtZW0sIGFuZCBjb25maWcgbWlwaXR4IGltcGVk YW5jZSB3aXRoDQpjYWx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