Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp417731ybf; Fri, 28 Feb 2020 00:17:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyPyCe9avqKyr2KVearPz3DS8wb79JNUmPBffpdx963qt1rRqTeeTmkpmVBzGK1f20hXN5f X-Received: by 2002:aca:3857:: with SMTP id f84mr2172621oia.150.1582877837117; Fri, 28 Feb 2020 00:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582877837; cv=none; d=google.com; s=arc-20160816; b=dgBwgYma0fho/R9WD2qKwKyVN7XTU7+jPY9LCrSkp7wMZDFCVS8mKoylwF6qDYoVDC W6HpcBqqLxAj+xnQT8koqYX1qLn61EEsXecxTU3HqNeSFgYRpFWspik5oei4h3bc0N2I I7fc1NucvaUQEMIPHnKF+lE59hBO+sj5gECh0dfQsGkBwpchW6rsQ+lNCs08bbuNx/Z7 eM/z5bNPBJptWRtaKyRal5UNuHNDIIDADR7D+owpq0KBHnL/j0rGct+Krl2b3zk9oSZU KR0IBg6EFWG4aH3wl4QaoKKR9ZMmRlsDq8PmUSL/ihTbbiDIIo9ZRlJALUH8RIe7d5lQ XTSA== 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=L/FpAxb8E7en2zvTJVh1HSTzJwv6fUFUJNCZpa3vMk6ZCX6COqSOwwM7fjqPJTkRYv WfgOyZi6ap90qqAtB5NTmc80VzmyyreKliZA1Z49k3Ebrt5QdeZDb/adxtPyc/nu1qLZ rZfBgKJqFAipfEg+N/Nl15kWxCkeYibUbWIna4SeXYfAHkY7Hk5mSy2vQ7/ETR5RAH0j vxtPdMG9ZKu4wTTXyzuBG5kxnf8MK1hLv9LF5uMgy3fxVaVVybQhJ+pdKcHwGxw5bM4l zBTHIJEKuvoSaukJkI67pJXciZVa7x2DurbpNOBKD1hxMiot5+R6s7Z7oD8lvPXKFaid 5vpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PAE5kfQD; 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 j33si1169974ota.21.2020.02.28.00.17.05; Fri, 28 Feb 2020 00:17:17 -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=PAE5kfQD; 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 S1726700AbgB1IP6 (ORCPT + 99 others); Fri, 28 Feb 2020 03:15:58 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:20987 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726563AbgB1IP6 (ORCPT ); Fri, 28 Feb 2020 03:15:58 -0500 X-UUID: 1a457408a16940bdb9720cb2d363afdd-20200228 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=PAE5kfQDgzmu3vKSC/WHu/bJofvJwIA3J2dlql5vPGmQr9awmf7/8sGbNeAn13PtGv71DXf/U072jM8Um0Hnf8iiKIpHcIXMJZW3N4ScsSCa2/VRZtYfHyeCQRcEuGOJ3tX7tlmMrAXp/DXnsUrWKD5HbvTUSjLgacVJTcq07nQ=; X-UUID: 1a457408a16940bdb9720cb2d363afdd-20200228 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 999138852; Fri, 28 Feb 2020 16:15:41 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 16:16:16 +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; Fri, 28 Feb 2020 16:16:02 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v11 5/6] drm/mediatek: dpi sample mode support Date: Fri, 28 Feb 2020 16:14:40 +0800 Message-ID: <20200228081441.88179-6-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200228081441.88179-1-jitao.shi@mediatek.com> References: <20200228081441.88179-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 343341D95883C14E46A94488F5FBD10FE21C3AF7F53AAA3794102E894639B6F92000: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 IHNhbXBsZSB0aGUgZGF0YSBib3RoIHJ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