Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3326736ybv; Mon, 24 Feb 2020 23:06:09 -0800 (PST) X-Google-Smtp-Source: APXvYqze5OLjYUzSPLlcBarBxbd7l81Isi+bILRTAplKabEVXSWAIJj0UKeJDd8VWUKVmuMCHO3F X-Received: by 2002:a05:6830:4a4:: with SMTP id l4mr43649447otd.91.1582614369331; Mon, 24 Feb 2020 23:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582614369; cv=none; d=google.com; s=arc-20160816; b=DvKHxXe5CeQowxh1yKvw1GCAGOugMqrf+KJiUdF+PhPv6kLM5qpJ4YFMcBBU0VxaAL baCNBreZcpF3dR59eRyrSGvtzMiJP2QxaAWGW+jTer0szz0pR3zquJ53FGm6X7tDV8Nt V5xxGWIQpeDAZykxli8vMeky8KYYbNNDMpZpEcWlwXFHIWO/Z63uyqVTYfp6NjDN/hHp ntEBE3OkkLgpydBjjG3wWyP5xaq1mPRgENm2DF/dUWZrFu7KKKOCW5j1izJDDkAnDkrS 9pkE9QKKuiMbLr8ww0qhs4Fti5XTO8Cj0lP8gobb8HUc9nMex27WjRnI0wjT0AaXcLAF M8TA== 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=XR2ppAD5uxrVIqeYRVReyXmjp0MHBUPGhrr7FaNU7Hc=; b=YqbmJy2cvSv9qzBVCqkn2921EleAi42/ezFFKvZxt+XiY9F6TOUOQ/yMFJJ6EVjZpw qgFWJrzLmlCbCUv0+uW5ntIxjywJ1ZwVrYwqN6zRVo3l9+FIJKs/fPsbutx93QSCAXZb MfXJClkMjXSaTL0mbnuKydr591bwseVyH86YLylb6n3MAObsm+CpV44VtWHjmyy90rXy a/RRYQkSnYNUw3d0L6LxgsHIOfJGKPt1t2wl2H6wFKcjO8E8mWrl9Vf5OEvAooaXNf9T KxjhE64YIdhIhvPUX5AjYiaOk0lDKJ6DDqfIn3L5pdleSeuioBYTXX+Y7xK7XC7J5w81 KyKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=K0cJVJjF; 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 l17si7494570otp.248.2020.02.24.23.05.57; Mon, 24 Feb 2020 23:06:09 -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=K0cJVJjF; 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 S1729131AbgBYG5j (ORCPT + 99 others); Tue, 25 Feb 2020 01:57:39 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:55019 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728999AbgBYG5j (ORCPT ); Tue, 25 Feb 2020 01:57:39 -0500 X-UUID: 77d95543c9c649f483443a3d1d27b690-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=XR2ppAD5uxrVIqeYRVReyXmjp0MHBUPGhrr7FaNU7Hc=; b=K0cJVJjFRtuJFmX01fuH+CSx0tV2+29+DPcI+ZK7SmZQsget8GqdMXDfbOLKq3uOUrAxEXI5S0m2WjM4CcZPtWg/Gu8wNrokrtzIclvcmEik+20RKR+tzrzyig3yYTx6dM9sVfb9opjbvNCgdXrdbs6LLaPVMqETFkDKcjLbJlg=; X-UUID: 77d95543c9c649f483443a3d1d27b690-20200225 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1509474478; Tue, 25 Feb 2020 14:46:48 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 25 Feb 2020 14:42:52 +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 14:45:27 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v7 2/4] drm/mediatek: dpi sample mode support Date: Tue, 25 Feb 2020 14:46:36 +0800 Message-ID: <20200225064638.112282-3-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200225064638.112282-1-jitao.shi@mediatek.com> References: <20200225064638.112282-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: F530CDD1AE990674843909EBD598AE1A7B6D596DFB8696F3C5AA950F8906ABF92000: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 IHNhbXBsZSB0aGUgZGF0YSBib3RoIHJpc2lu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