Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3032693ybf; Mon, 2 Mar 2020 21:29:49 -0800 (PST) X-Google-Smtp-Source: ADFU+vvGKF1CpvhlgGpJU/ajADKwzTqlfC6j4rblQkqQ1moOWY59qGC2tpn4tSl1Z56COfqqHE9k X-Received: by 2002:a05:6830:1645:: with SMTP id h5mr2200693otr.317.1583213389437; Mon, 02 Mar 2020 21:29:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583213389; cv=none; d=google.com; s=arc-20160816; b=Sr/Y6m+ZtkjHJDtI/203KAWYODTQWTBH+BO+TV1/ABVKGd2ChnOvlqNoNw/TXq2qcl ENqaZ89tCHvH75VcfJkqa4luHgswZiiuFFkKLnHxg7uFRmtcCU/djV7jOObUs51qc7/A eRjbFjEd9m/vZE1YxURoF7Mp2drRacU9usx7CI9LpPMg0n5yOEJCpN6A1+z0+cpCS3dr COtHbIFSIHqCxbWCfRetMWKZKX63yw7BGqK/rCM44oEY30j1f08goZiRty5JwAav0V3q Ei51RC42nR9iORNncIUKy9PF1hVSRoK2IxERRY3DPjxP0UfBzZmgkJJX9bQJNSlF8ZU3 kyrA== 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=GqzXCNpUxckx5ubY4kpCVp1Ssj5d8Wj9EwIiSJrnVsA=; b=X2N1tBE7URolwdVCpt6sxPqVLusmXT8pjq5ogt37NxnYgfmO2E094WoCDjJSr1Dw6U AlaavKtb1CBfetansOw4SYAdFk07PQ0AcLYVdz6R7rBdkF7UeIFFNSOFVXCwGAF+PrNH ryV2OBPZWks3KjTWc2+AE55XKGsXJSOMdvwKklVS1pQ/qz/wpQnikcdX1O8C58yNTW+9 CyEc2+WIShBUtPY7bOFPGyd6wAjKeoEQ3slK1g+N52FjcuW0owKufVrKdCe1YxV0q1bS mf0CNIsNKI56jLXi8Wo3oAh9Z8H0L+HQnlsXKv6geLPsy9R1tIVDCUqj/xQtgRaNiaDM wsQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=M0KxgiaW; 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 m1si3340357otn.271.2020.03.02.21.29.37; Mon, 02 Mar 2020 21:29:49 -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=M0KxgiaW; 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 S1727446AbgCCF3H (ORCPT + 99 others); Tue, 3 Mar 2020 00:29:07 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:40303 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727101AbgCCF3H (ORCPT ); Tue, 3 Mar 2020 00:29:07 -0500 X-UUID: c82264bcb04a4db1a4db6f8f29a215dc-20200303 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=GqzXCNpUxckx5ubY4kpCVp1Ssj5d8Wj9EwIiSJrnVsA=; b=M0KxgiaWNQP78m4hALiSd+LrrtNyFRKrKbdKOOyvSYT8DAIfPh7yRIAAfS/pgA81XB/p+QirYaPRb+ug7INWAzhm/z2PSWxVwMnWduVSApxPafiiHkH4g9bxVazBH++lbQ/D4+TyvFK2H0OT0mKmQzX3d5GT8CRm/dH0dldBtLc=; X-UUID: c82264bcb04a4db1a4db6f8f29a215dc-20200303 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2079417183; Tue, 03 Mar 2020 13:28:05 +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, 3 Mar 2020 13:26:42 +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, 3 Mar 2020 13:28:25 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v12 5/6] drm/mediatek: dpi sample mode support Date: Tue, 3 Mar 2020 13:27:21 +0800 Message-ID: <20200303052722.94795-6-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200303052722.94795-1-jitao.shi@mediatek.com> References: <20200303052722.94795-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 3D36277970DB06A6EBC23EF3A5F4498C51A7F40E0CCB673E784DCA18328176BE2000: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 RFBJIGNhbiBzYW1wbGUgb24gZmFsbGluZywgcmlzaW5nIG9yIGJvdGggZWRnZS4NCldoZW4gRFBJ IHNhbXBsZSB0aGUgZGF0YSBib3RoIHJpc2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