Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4339542ybv; Tue, 25 Feb 2020 18:09:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzsf8gJnxO+wtq3AUb+ahAJ+JoKPMyhU3Uyr895lyxiJJ5CW1w+zoX5Wik37tfjfRcz661s X-Received: by 2002:aca:330b:: with SMTP id z11mr1333974oiz.96.1582682962619; Tue, 25 Feb 2020 18:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582682962; cv=none; d=google.com; s=arc-20160816; b=sOndH0+Ylg2ztY1dL8cCct8n7qbyNU9t4yvMSQoHNbIYJoZgOsdnLjddqIkR5sfngQ XyW73Xv56xvaAmWNWHtR4j6kpJKIBmke3tcvE2mGs8nyIjvcrM6ysM9TjiaCItvJjt6y rmR8w4k3kplbYHlv+nASCSYAUXIt0IZYEHrEfaAAf7DM1Myu8eMMgBNlC+og8vcI0QPL CDnmsP7zeLHS6UF7Ad/0je6b468DOGjyRpbvXZKTa2fiuitJeK13oTW8WFg3N6HIJ+bq aNC0u1BqJmsoKlRsJbioTCiOB+KHHJbVVYf+D1iQTV1KBf25mfY0zJ4n8EkmDAGxdy+/ rQxA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=4G50YT7BXruqV2bmMQ1wFG6jQuwy2URnoGbMjXzFMIU=; b=EtBKm/adqst86kBcHBMgPbmrNNiiie7JeZBs3a2A18GR5yn7ez0Sy2gluO5oM+8/5w J1liFUBDXmlxN9moZnrfWU0G1NKtw/I25PgGiNNLsU7rA5AhyI7pMqPDtusapP9yU527 sTRFsTp+TD/2TlEef2RwpLzWv855147SOZohzd3+hMIj+FRa6D0t0gcsB6myigyAXqXP sfztDa+6MPuvavln3xlWRMBcnkfgfdUxAoiIMoZDCre6rJem5+J9HeAsNQmygS2SfN+o 4RmZ4jgQadIkELDeybtjI8jmnlfopa/GMv9SgTiJp78gdx57J1u6IZurYg0Ac32kpBuq ck9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KCj77MDH; 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 b25si365703otp.212.2020.02.25.18.09.09; Tue, 25 Feb 2020 18:09: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=KCj77MDH; 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 S1729558AbgBZCJB (ORCPT + 99 others); Tue, 25 Feb 2020 21:09:01 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:11315 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727809AbgBZCJB (ORCPT ); Tue, 25 Feb 2020 21:09:01 -0500 X-UUID: 3d4c6f9141cf485caad1c856ab37d957-20200226 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=4G50YT7BXruqV2bmMQ1wFG6jQuwy2URnoGbMjXzFMIU=; b=KCj77MDHGBUI5+HsG1pveLqvpV1Ohv+SDCeRpDLBbwfqhlPOK58JXecbgYKHrcb39OPvxqyxkvA/uH2u9YJohLi36N0JNAL2QnQTlJN9LjsMg4+kddnasRC6wNgcGEMGudj2nOPkce2q/vNf4H2mAv3M8sE9Iykx/bBsusi8AGY=; X-UUID: 3d4c6f9141cf485caad1c856ab37d957-20200226 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 347331116; Wed, 26 Feb 2020 10:08:54 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 26 Feb 2020 10:08:04 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 26 Feb 2020 10:09:02 +0800 Message-ID: <1582682933.16944.8.camel@mtksdaap41> Subject: Re: [PATCH v8 5/7] drm/mediatek: dpi sample mode support From: CK Hu To: Jitao Shi CC: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , , , , , , , , , , , , Date: Wed, 26 Feb 2020 10:08:53 +0800 In-Reply-To: <20200225094057.120144-6-jitao.shi@mediatek.com> References: <20200225094057.120144-1-jitao.shi@mediatek.com> <20200225094057.120144-6-jitao.shi@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 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 T24gVHVlLCAyMDIwLTAyLTI1IGF0IDE3OjQwICswODAwLCBKaXRhbyBTaGkgd3JvdGU6DQo+IERQ SSBjYW4gc2FtcGxlIG9uIGZhbGxpbmcsIHJpc2luZyBvciBib3RoIGVkZ2UuDQo+IFdoZW4gRFBJ IHNhbXB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