Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3466285ybv; Tue, 25 Feb 2020 01:50:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyXwydcd4fjhQjPhRIgZIHq/pEDucaelO99hhh4Kj0VFouFcta7PcofsEnd2V4xIWmDjUVo X-Received: by 2002:a9d:53c4:: with SMTP id i4mr46298723oth.48.1582624219639; Tue, 25 Feb 2020 01:50:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582624219; cv=none; d=google.com; s=arc-20160816; b=mychKRdWySOgAajvsZIIxL1p1FqRVVdp7dOYOrWeG6cR0NRFjUbaMM7BXJo2+l3CpX Db10/h9LY/OxjC6wZHREt83hWJc1AlsPd+APu9ok7Wio0jnb4Cwfm7QopYnkKOmPupBh ALbv6kTfgezmXuLrjTu5c8o9PLxAtPfFb5Ah3DYN88/JXOU/bMAHRUD0Sii08evDa+r0 bn7QpW5IWElqF9XMOmifxlgrWt0krH0P8WKOAj+k6BxUuuscJ+EP7TapKhaHgXFzcZFB /g6M2YmUk0gjYWc5gw/+X56GK/GJm6fp7J8bnBv2OkDpOrzj3KlGm//3WupUtwA/EvrJ cWRQ== 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=ubh4sMcK7mfBPhDF/iNIJ2SIn7t1E9aLFirh4DWfUzo=; b=z580Ax1Z/wMI9AgmwNlF/znbhulSSkfeyMiNSL5RGV/iTTRiOrXdP0QRSxHzuIl/JG N+b/ppla8WPoEhWztfS6ErZvZTesJyyUHi0PxaHMiB4P7AwF1D/I/nIYB4wQXvalr+DL +3U6oHPuTUH1Mckv7fHCuHjjDg1LzFGJUOsQ0bmW+gH3KyW/DodzX7AjZQa9elJoIwC8 QfUs+x0m8UTc96pfytYOGc4yw8Hst3j8QBn2xXkmGjjibsBZ6fecYFEBDl3fJqJwZzri bVf5R3s2IZps40dlkJOaX0Jds2sXfjcidBCBnzHbgFnE+y29cTtmB8H+MKBPYlbh0y/U CgpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kePgtKjC; 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 s22si7942085otq.100.2020.02.25.01.50.07; Tue, 25 Feb 2020 01:50:19 -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=kePgtKjC; 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 S1729602AbgBYJlo (ORCPT + 99 others); Tue, 25 Feb 2020 04:41:44 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:1991 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729385AbgBYJlU (ORCPT ); Tue, 25 Feb 2020 04:41:20 -0500 X-UUID: 50fc2b325f36413aa801b3a7657a26d5-20200225 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=ubh4sMcK7mfBPhDF/iNIJ2SIn7t1E9aLFirh4DWfUzo=; b=kePgtKjCja/x9IWMyuZuonpJ+wRaOfwHA+IrIZQlk67xu9/m6jXoTrmveyuuPUKXySCqg5Hijmqha6YqcZ75J8EFNLUxu7UBkNKzQ9aME4FxegKgQ0nSCl6X2BKzXGmQy/aOmbRtb2daUuGwL9f6HO9bO/yz6Y/SosOqHO0rFqc=; X-UUID: 50fc2b325f36413aa801b3a7657a26d5-20200225 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1946428999; Tue, 25 Feb 2020 17:41:12 +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.1395.4; Tue, 25 Feb 2020 17:41:47 +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.1395.4 via Frontend Transport; Tue, 25 Feb 2020 17:39:51 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v8 5/7] drm/mediatek: dpi sample mode support Date: Tue, 25 Feb 2020 17:40:55 +0800 Message-ID: <20200225094057.120144-6-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200225094057.120144-1-jitao.shi@mediatek.com> References: <20200225094057.120144-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 4D5F295A5A80D9CC1D6BBECE2F6B32D3A61E96EB59B246F8C100CA6E6D30E54D2000: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 IHNhbXBsZSB0aGUgZGF0YSBib3RoIH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