Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1338227ybb; Sat, 11 Apr 2020 00:45:53 -0700 (PDT) X-Google-Smtp-Source: APiQypLDWADgiEHqI1c3di+uiMdX2Pu6uwyA+WABwca7YY8MGJumvjRw4XVIp4DI9bolI0r3peQr X-Received: by 2002:a37:b03:: with SMTP id 3mr7181036qkl.67.1586591153410; Sat, 11 Apr 2020 00:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586591153; cv=none; d=google.com; s=arc-20160816; b=EaCeGHyxqUMxTykBjnc1SYcPd7kgsWr3y4H9yDtPRqjs/5W0ZRpmVxWKDeS67kNx1G nWnQzT52j6C97dCSTMz4kQKBoTmCd4qSJL2V7GkVcfAh8UM2t0iVxU4b4lx5L5DkNAy8 WG1HxF42ijkifYyHCDfnoNjaKZGStclMDRwjohs909ay3u5vxF0F1apeVKgtIb1oBcae PvoGWxdUq7ydMACG4IHojQB6M7ds9X/JNIxu2k5SqlQBapgKlWt2X/UgQ9TYuGCmjC/j vx6+96TrUONgWbb15QcyF4WrwgnRiAJGgJhvOnnpxD9Lad3SmauF19X5qOO9EJ8+znIh Ywtg== 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=GY6kkVqQdoO6pb5HRhb6+TbQErdD2FZ5VWwTRBcTUlY=; b=WDfPvZI8XeYWgTUt4NC8bJC5vbQDI3gq/Y6yPHDe8Z64coqwBc+aHu5kU/CR8rNPjN Qx46dIE3MwCVuAhU+4o3g4mMkD0iOmZg+zhuJ1S+9+waqI4Yx11oR7GJzDvU50YZx8df z1y54sujF/Ws0QFiJasZknU72OittNBQfW4gcMvyYyEQrIviVFESIUDZ2y9mCAEwTz/M ifDwcpsHMcK4jGxnEcOXkSTI12EiJK3rhGAhRxKe6EINe2hFOdl2NdVqqBAHKJ6DWreB b8U6dR6dk7tdp09MpHgfHmGTOdXxXaNYfZ1z4mPQIv/18exJ/sp5vFqkF5Ch4LAA+PQt spTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mL+jfjih; 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 n27si2515181qtb.257.2020.04.11.00.45.40; Sat, 11 Apr 2020 00:45:53 -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=mL+jfjih; 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 S1726351AbgDKHor (ORCPT + 99 others); Sat, 11 Apr 2020 03:44:47 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:24843 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725905AbgDKHoi (ORCPT ); Sat, 11 Apr 2020 03:44:38 -0400 X-UUID: 8929f2f7a1e948c88716c9e1cffa2c02-20200411 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=GY6kkVqQdoO6pb5HRhb6+TbQErdD2FZ5VWwTRBcTUlY=; b=mL+jfjiho+ZbId8z+3DJ3Hy0SXHhfmso+RWzUGhHubKEFfdozV5tC7TTuE1TyStWiVKtynSjloaOKFdOLPB1BpYn9R8dYFqrgQqdVeH1R+U/buV/4Iye3HDfucW9+CCkSKXGFPXASsQ/RnTv8JKfz9X708EXkgbvBLOLES8PK84=; X-UUID: 8929f2f7a1e948c88716c9e1cffa2c02-20200411 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 346581309; Sat, 11 Apr 2020 15:44:28 +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.1497.2; Sat, 11 Apr 2020 15:44:29 +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.1497.2 via Frontend Transport; Sat, 11 Apr 2020 15:44:27 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v6 4/4] drm/mediatek: config mipitx impedance with calibration data Date: Sat, 11 Apr 2020 15:44:08 +0800 Message-ID: <20200411074408.38090-5-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200411074408.38090-1-jitao.shi@mediatek.com> References: <20200411074408.38090-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: AFB922CAAE16CBA39DB068B9B2C548EFCE1B0533F1A41542C3961D0FDA54E06B2000: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 YW5jZSB3aXRoDQpjYWxpYnJhdG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