Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1788276ybv; Fri, 21 Feb 2020 03:31:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxeKP3rg9/66FibX4dv4tgPOpy79LwOnKvJ0raSGWwrWrEoWASFtXbzVLEz1Dlswv/LUNeC X-Received: by 2002:aca:af49:: with SMTP id y70mr1609442oie.162.1582284670927; Fri, 21 Feb 2020 03:31:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582284670; cv=none; d=google.com; s=arc-20160816; b=jizaRfQ8bdzuL4q/c8l0W1ldX9mTETE78WNkPcCn30SZnmlv3qj8bokiUtLLVmhGcG UEOlyx3/ckNFQGDsNvaOG1hbtxFxpRom4KhR5GzJoi8foCpeR6ya6tg8HKqBC1yN/bu+ KSQNjA/UewRxoVAnAIVQ5pnXIzD8CrARYwfSjDYBNVfOqWbn08RsWquGY0icDyCNR2yw jr7uR/iqMB5UIadoFCybpV9TsYNWOimMzodjEEsKlvoAYEDPSOpomh1ciDsWDbmBHnmE uS9tb8KVVzqcJGX9Pw56TlyAKu0gi+iM3M/dQ9WoOlxKk4wR4vfmIwafcFfXQ4o4tkX+ hn8g== 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=FEmqX8k1XxKtpg6LtV267K/kVK82s0J/+1oiECAtDr8=; b=El98ztut2yKkZzXE8e6XXv2DhYkec5j5aqIU1wCdZCQyIAzeMU3e90sztcy8CIfm2W BklWMqFtl3l6KQdw97kRBebKQ20xuTHt5o09ZRePI8N77RuxhuWZQXqGNbLCetvJVioY AVrwggiEV6Hk//9giukDSh6/8JW4xGzFPIVlGdpMaBiw0tGfI3kHmmbDa39y90BUdmoq IsaT1BFoF7K7wZb/JFzFWEyJitQpnQ8IXpGB3lVxLvAZCt+Fffpjs9Lnqwl/h2kgRI16 DymlyiLmaaja4GJs3GtRwBv03f7DMTHUnxRa3cYhKm2BKM11Y8Z9D+Wx9hIfcIFJWJLN zPnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=eiVtWza7; 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 j18si627916oii.42.2020.02.21.03.30.58; Fri, 21 Feb 2020 03:31:10 -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=eiVtWza7; 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 S1728147AbgBUL3k (ORCPT + 99 others); Fri, 21 Feb 2020 06:29:40 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:59009 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728032AbgBUL3j (ORCPT ); Fri, 21 Feb 2020 06:29:39 -0500 X-UUID: 052b074eb7614261a01c8e5279b70408-20200221 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=FEmqX8k1XxKtpg6LtV267K/kVK82s0J/+1oiECAtDr8=; b=eiVtWza7lzxEFCLndw31k7qJIWOII6gD5pjTPkjq/6wrO8p1+SXSIDEU4d+sQdcYZflsnpyx5f0FyhTtRO5o15kP27VGaj+YJFzX3f/1jDUqVL7WuFHyDNDfsJhDCaNLVSR/g9MF9i4E8NNFnZB7U6ykVxUol6xQ2o+9CwF/l8s=; X-UUID: 052b074eb7614261a01c8e5279b70408-20200221 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 582895744; Fri, 21 Feb 2020 19:28:35 +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; Fri, 21 Feb 2020 19:29:09 +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; Fri, 21 Feb 2020 19:27:35 +0800 From: Jitao Shi To: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , CC: , , , , , , , , , , , Jitao Shi Subject: [PATCH v6 2/4] drm/mediatek: dpi dual edge support Date: Fri, 21 Feb 2020 19:28:26 +0800 Message-ID: <20200221112828.55837-3-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200221112828.55837-1-jitao.shi@mediatek.com> References: <20200221112828.55837-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 636B543D83D9CE9FA7A8E41EE0DC7016EB30FCD39AC3129F92B4388D8A2F89C72000: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 RFBJIHNhbXBsZSB0aGUgZGF0YSBib3RoIHJpc2luZyBhbmQgZmFsbGluZyBlZGdlLg0KSXQgY2Fu IHJlZHVjZSBoYWxmIGRhdGEgaW8gcGlucy4NCg0KU2lnbm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