Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4497820ybv; Tue, 25 Feb 2020 21:34:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzBXM+5z3lGtM8lLCz0fqMJpEUVfVCEL6ny3ZKInQE9GM41KyoeyZgBfnnPWveuTLz6ylEN X-Received: by 2002:aca:4ece:: with SMTP id c197mr1780952oib.53.1582695262822; Tue, 25 Feb 2020 21:34:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582695262; cv=none; d=google.com; s=arc-20160816; b=vwpiFZajtuhxDpy6LltR7HUPk26cOVv97loyFqqHf3YqoBaWuWxXjrKu6O9l4mNQBm IgO34FVvK0Q6i/bXRdie95XQl6IvlSKRpH1dcw5qPEh+NN9adbnW8DQZBhglUgpxT3Ni +2BrazZVqM4htpwbTC05FlVkSdzUnQ6P5rdQLHDa75e97bNnyAOR4bn3RgeK1Ukv/uAQ jwyBnz+Q0WBnQ4kDOvyxikrnaLjg6ncbQ8tQ35Uv2LQzVdBcQCi8pWxbAqT9Uahv0+ht rJy7bYqL1Tdx2X45NkPranulYA/r3FlqjvZA6kJ70xNVTNx66WqtTj4kMkicQ+uAQTnW jEdA== 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=Oksh9uxfhxB39W9mZ1YETgdz9bkLwWEcOn9z7lBRdaBCouESsTCaMKfPdpx8g6TSMK 37Oqw0DGRVdDnYq5w9DnFhPtT8bb4nn6ZkkFpYoKPJrZdbI5AR4RdrNkGISCc5sf/RzY bFvzDhYjnlZ/JW4P+HJd4c8YKUJg9No8e1hGraJ+pXGhdVLthzNC1ugv/RT7oAICsrk0 WnY1oMwIdCGcQxoe5y3xoWGFKW/VzLWdpgFa8cOFbrplJ2LQBe8CZkBOBx56irKAsRz5 We3OEIOpG65n4IKXfUc8gEq/0Aqka/wT8U/BgJPk+1Xh8ZwtXPtqZfOvH+4w94Ww+6ab iRig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jXcdIXkH; 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 s7si629778otd.280.2020.02.25.21.34.10; Tue, 25 Feb 2020 21:34:22 -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=jXcdIXkH; 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 S1726714AbgBZFdC (ORCPT + 99 others); Wed, 26 Feb 2020 00:33:02 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:29751 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726089AbgBZFdC (ORCPT ); Wed, 26 Feb 2020 00:33:02 -0500 X-UUID: bbdead0743264366a919a0035522d66d-20200226 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=jXcdIXkH1dBQ5wz5qOWFr5xUzOX8ffGi2jZCIp02263oINLZkFJFinEQkS8bu6anp9S9X9xZRZ+Q0LFjCgi17kCpPPpzFvbHEgGjn/Oem+g3fEbgGEKCFA3iYoZFeHpzv3NnpMuSSquepd7ptv4r88GNkkpJMyCLXCFHhVfL6Fg=; X-UUID: bbdead0743264366a919a0035522d66d-20200226 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 277137274; Wed, 26 Feb 2020 13:32:52 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 26 Feb 2020 13:31:30 +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; Wed, 26 Feb 2020 13:31:27 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v9 4/5] drm/mediatek: dpi sample mode support Date: Wed, 26 Feb 2020 13:32:37 +0800 Message-ID: <20200226053238.31646-5-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200226053238.31646-1-jitao.shi@mediatek.com> References: <20200226053238.31646-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 4936DBE699F5F33008C7717AFFDEB09F8B12024CD9F05E0834A1A516095CEDC62000: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 IHNhbXBsZSB0aGUgZGF0YSBib3R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