Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1394931pxy; Sun, 15 Aug 2021 20:02:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU1fPzmk2KiQ7mCboURubtl9VVoBslrRV13OXYDiPYoO/KJ7vMkXM//VhjcskS7NqLVd3e X-Received: by 2002:a02:5107:: with SMTP id s7mr13512659jaa.65.1629082962166; Sun, 15 Aug 2021 20:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629082962; cv=none; d=google.com; s=arc-20160816; b=YjnjQArCiuxLsO0v14WsdKFdKHRD+fS5D0z8YzUYHDD8gheVHFVycqG/GRRT4VbaWu zMxftnG/cU6Ax7M20nNSnpAkn8gKobuUbWSRZIHbTkVlCUffKUdtHRL/jE2gWAGfN2Ey 4a2NtYD0q4nu4rME7lQePCeotXzsvCSD1EoYPeHJx0lzr2oY2576VDKBU4qhuYvwP4TU 4Y53AMMYjji8Ag5kXmgVSnk+huY7OqEko9g1UsbKjjkoZGEKWZK+Omht5W4GK2Hy6XT9 0LTpv/ZU/1SHq5LdtiyeCEovl5Lr5I/bw1jgbBp+nkG4KND2LHigkDuZGGHb/2mPltsZ J0fg== 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=ftfxv/CUlIAeWYbL6TwrbvlRMZgW/5AhLaNvhnbvyfA=; b=smDMTkXXGXD69+YnFgjpA7tdRL9JvB2Sc+rAomCg3EuntOh/fF+5Mmo4nQY6iO/7io PGtZzDH2Wxo90f9oh0SaZYawtQNlDvWCMLRVJqZwiCRf6cQqBwQ0g25R37K0IB1DzASf wgQZbX72FpmKMFesWgGzFuqzZpebdWefAduCCBp87oWoASZS/rGJ2+T+082cdbNbwTP0 q/NDLc0IDZNQgFNMw2rERjEyC/qF880vWXPsjJ06T/oJQMjKxGl806sg3Mh4ucxkNMPq YizLZ82Ft2sVShaaFfDG7024LGFB7E/z3a/3CucCe+ZwFV3lV1zcMWO+9QKCJX6dsb6E 8RlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=qBwi7cXi; 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 z5si11784708ioq.70.2021.08.15.20.02.31; Sun, 15 Aug 2021 20:02:42 -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=qBwi7cXi; 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 S232845AbhHPDBZ (ORCPT + 99 others); Sun, 15 Aug 2021 23:01:25 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:46171 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232295AbhHPDBX (ORCPT ); Sun, 15 Aug 2021 23:01:23 -0400 X-UUID: 060f8fb93bfb46c1aeb54d6b302e7429-20210816 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=ftfxv/CUlIAeWYbL6TwrbvlRMZgW/5AhLaNvhnbvyfA=; b=qBwi7cXiAlbJ1BNq3cG4nTbAZE/rR+7nAUwecmgYTBIwWUh6dJgWiAKyQTtazveWsUlwDvljyilW+CU8PuPssPDyNWCH668HwUcZyqNhaqwnpVVvXS/4N+iqorAC8KmNdFSWQn2QaKhe+G+xyMjhtwyytfdBdvio27YcPv9ncL4=; X-UUID: 060f8fb93bfb46c1aeb54d6b302e7429-20210816 Received: from mtkmrs31.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 660280701; Mon, 16 Aug 2021 11:00:47 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS32N1.mediatek.inc (172.27.4.71) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 16 Aug 2021 11:00:35 +0800 Received: from mhfsdcap04 (10.17.3.154) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 16 Aug 2021 11:00:35 +0800 Message-ID: Subject: Re: [PATCH v6 7/9] media: mtk-mdp: use mdp-rdma0 alias to point to MDP master From: houlong wei To: Eizan Miyamoto , "linux-kernel@vger.kernel.org" CC: "wenst@chromium.org" , "Yong Wu =?UTF-8?Q?=28=E5=90=B4=E5=8B=87=29?=" , "enric.balletbo@collabora.com" , "devicetree@vger.kernel.org" , "chunkuang.hu@kernel.org" , "Andrew-CT Chen =?UTF-8?Q?=28=E9=99=B3=E6=99=BA=E8=BF=AA=29?=" , Matthias Brugger , Mauro Carvalho Chehab , "Minghsiu Tsai =?UTF-8?Q?=28=E8=94=A1=E6=98=8E=E4=BF=AE=29?=" , "linux-arm-kernel@lists.infradead.org" , "linux-media@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , Date: Mon, 16 Aug 2021 11:00:35 +0800 In-Reply-To: <20210802220943.v6.7.I2049e180dca12e0d1b3178bfc7292dcf9e05ac28@changeid> References: <20210802121215.703023-1-eizan@chromium.org> <20210802220943.v6.7.I2049e180dca12e0d1b3178bfc7292dcf9e05ac28@changeid> 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: C652353803CBC4B984A0B8AA9034DD10E6D5E4C205CD082C270162525F6A8B8D2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIxLTA4LTAyIGF0IDIwOjEyICswODAwLCBFaXphbiBNaXlhbW90byB3cm90ZToN Cj4gLi4uIEluc3RlYWQgb2YgZGVwZW5kaW5nIG9uIHRoZSBwcmVzZW5jZSBvZiBhIG1lZGlhdGVr LHZwdSBwcm9wZXJ0eQ0KPiBpbg0KPiB0aGUgZGV2aWNlIG5vZGUuDQo+IA0KPiBUaGF0IHByb3Bl cnR5IHdhcyBvcmlnaW5hbGx5IGFkZGVkIHRvIGxpbmsgdG8gdGhlIHZwdSBub2RlIHNvIHRoYXQN Cj4gdGhlDQo+IG10a19tZHBfY29yZSBkcml2ZXIgY291bGQgcGFzcyB0aGUgcmlnaHQgZGV2aWNl IHRvDQo+IHZwdV93ZHRfcmVnX2hhbmRsZXIoKS4gSG93ZXZlciBpbiBhIHByZXZpb3VzIHBhdGNo IGluIHRoaXMgc2VyaWVzLA0KPiB0aGUgZHJpdmVyIGhhcyBiZWVuIG1vZGlmaWVkIHRvIHNlYXJj aCB0aGUgZGV2aWNlIHRyZWUgZm9yIHRoYXQgbm9kZQ0KPiBpbnN0ZWFkLg0KPiANCj4gVGhhdCBw cm9wZXJ0eSB3YXMgYWxzbyB1c2VkIHRvIGluZGljYXRlIHRoZSBwcmltYXJ5IE1EUCBkZXZpY2Us IHNvDQo+IHRoYXQNCj4gaXQgY2FuIGJlIHBhc3NlZCB0byB0aGUgVjRMMiBzdWJzeXN0ZW0gYXMg d2VsbCBhcyByZWdpc3RlciBpdCB0byBiZQ0KPiB1c2VkIHdoZW4gc2V0dGluZyB1cCBx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