Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4879523pxj; Tue, 25 May 2021 19:52:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSwdvcfLN7njY2HcHeYoR7ezTelhChsKS7wEHu9sJ0n9Fe1q2oHYmIvd/nAb/iJtP7lRvE X-Received: by 2002:aa7:d30d:: with SMTP id p13mr6939616edq.46.1621997556991; Tue, 25 May 2021 19:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621997556; cv=none; d=google.com; s=arc-20160816; b=txdxakLC07NzoEt2Rd9Dy9fWK8++r8BdWaLq888zD/cFpyVR+R5WAyQ5e+PcsUS9kV +bleSdf4zdb/tAK72M4qRC5GEYhqAgP8qJj0XLeBbPAzBBNbPkiIRRd3wX9mAtRJuT/V AYn9HSyuzVfRa4XdbKgoTS9ozl/KV4PqzNuNs/RWdHSoOhRxVpmvzqsNR7H2lgp7p6Fj CM1EVczHr75xCfI0ZLCIsquve44xqCd7eTGpoMBvA9XzQOoemg1xRir5wR+QMDCHDDHh RsGjLOn+FfcQs0+eFu48dkPbwJ7JNJDz8RqoPCPG9xzdrVHaH629oEl2AuaTD60tEhmi j8Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=80CTOwchKT3ybAOjvFyMtlA2Ol/KbxvnM85zEMOaPiA=; b=zPWQVHSm4pekUtqHMSD+Ri+vRoQQkW01yjP7g17IVUW4EDzhCCAE9e/Lsofi9dAJ2Z KHzqJLlhAtvuJSYIS5V93HQXzsCVN8efWvtfkXiivbsp+UJ8dU7dT2a94mXzU4RoqUMY rHJ3Q9Ly8bLcIa+aFw4wMnWN1tCgEz+zFJRLbWwCzzeJOBLue8+OTif7UlkrLhHHpCZV +k98P3gM8eJS0K6msxzck7ci0S49SzZJg1pG7MDiSWSfj+cA46iS5QNzO0lR2TKBu+dv +9o8uT992teHbunt3HAKXH/Ez053ud+bLVbbuQRMR+C9M1X18arVhjsu52cmhf2bUtL6 3W6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XqYalZCr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q29si16652924edb.218.2021.05.25.19.52.12; Tue, 25 May 2021 19:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XqYalZCr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230404AbhEZBxB (ORCPT + 99 others); Tue, 25 May 2021 21:53:01 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:38803 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229978AbhEZBxA (ORCPT ); Tue, 25 May 2021 21:53:00 -0400 X-UUID: 43d5b5118ddf4f4b8e288d0ccdbb5852-20210526 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=80CTOwchKT3ybAOjvFyMtlA2Ol/KbxvnM85zEMOaPiA=; b=XqYalZCrojkzfGvIDHyFOTu41pLEvBIjfGPAhAfcLDhrbPXCmNyMokMhUl3deX6h0DbhR+SPv0gJItYwzjuSqx4p5etqaNH5rbZCp3C7sG3CH4WInXPR0iaKKYo0UnMhIUlS0UHioeLpJcRslbFCuTSySxGg+txY7d5GwsLAMH8=; X-UUID: 43d5b5118ddf4f4b8e288d0ccdbb5852-20210526 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 282154775; Wed, 26 May 2021 09:51:25 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 26 May 2021 09:51:20 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 May 2021 09:51:20 +0800 Message-ID: Subject: Re: [v4,PATCH 1/3] drm/mediatek: dpi dual edge sample mode support From: Rex-BC Chen To: Chun-Kuang Hu CC: Matthias Brugger , DTML , Linux ARM , "moderated list:ARM/Mediatek SoC support" , linux-kernel , , Jitao Shi Date: Wed, 26 May 2021 09:51:19 +0800 In-Reply-To: References: <20210525121448.30075-1-rex-bc.chen@mediatek.com> <20210525121448.30075-2-rex-bc.chen@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 42D93AED34D03117334ABA24E227DA569F06D743CF4AF9909680C31FFE21AE7A2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGVsbG8gQ0ssDQoNClRoYW5rcyBmb3IgeW91ciByZXZpZXcuDQoNCk9uIFdlZCwgMjAyMS0wNS0y NiBhdCAwODowMSArMDgwMCwgQ2h1bi1LdWFuZyBIdSB3cm90ZToNC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