Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1345720pxy; Sun, 15 Aug 2021 18:20:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQm10//MmkIKw7YPQHNziflLTkiSbb3InnVaZN/tiUbDLtJBiVtkwljTMzFZGZln/SzzVX X-Received: by 2002:a17:906:8390:: with SMTP id p16mr4798644ejx.116.1629076853608; Sun, 15 Aug 2021 18:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629076853; cv=none; d=google.com; s=arc-20160816; b=f8mZmEsq1V5Sa7hHjHWAvwqtqwksfabCW4dI35MfyRM/QwSqcWiubbCu3LLUyNrDGf is6Ew+t9Sykq3D9bl6u373EmiEkyV8pMbFoHwmaZhv4rUGlpBhSQZlzJeEGjgHmBi9M8 ckjOUH4V4ztKYFaOoG2hWWvFwaGXmeWkwhLKVf13BiqNiGAAPvlw9JJlXw8lkO/v8zJ5 ip4RWyOMO2iigmDNYFPqH8Am/1bymvn3eEdfVCRAyu8F1B0p8JsFpfKCMJAZGE2JQvwo u24nO6ewmhyHRS4bHQ/rpcd1snyxc2VgGRTMD9kSlCY2/Al6F0RKK3KllDwHtSUY4Pr5 2rOw== 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=zMgcmilrnOZK5/KKJ2IXdoMtIXHDBZKsjT73O5khxW4=; b=1Jm7g/r3J8TBY/LDC9lqbUTTU8hcOiiEsrgahka8KjhRA90eJdALbjLILc6uk72wLr LfdcgOftRzb8hx9YJqDGXfdEvdqqfmshSDANo2OIzA02qsP2PG0g8k/XNR5S709Pqc5q 3QrguPdpvmkSl+51xiu+Nr4/y+OZV0ejOqJL4uluAdncqE4AZVCfR8Zo6Sd5pc5nNVhH yBlzo7+qbDBONmFj9seV2qrHhOOuqf9bMRfbilaEX0Z2QoKY60lPHlbKj8qLqxZip7s6 QniuS+2/RWgKbe/iDv+wdyeuvsZCxIdiDRD0QUcad3B/MR17X6D781d6bHzQuwppGJur yeCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Q7FLlNeq; 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 k16si9071510edr.319.2021.08.15.18.20.31; Sun, 15 Aug 2021 18:20:53 -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=Q7FLlNeq; 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 S229741AbhHPBS5 (ORCPT + 99 others); Sun, 15 Aug 2021 21:18:57 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:40790 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229527AbhHPBS4 (ORCPT ); Sun, 15 Aug 2021 21:18:56 -0400 X-UUID: 6bca7c7958154cdd95dda9d0a26297db-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=zMgcmilrnOZK5/KKJ2IXdoMtIXHDBZKsjT73O5khxW4=; b=Q7FLlNeq6vWEv6PmGu3iRJL9/MMeaZ2fxCpraMg20ywYiU0NV6XpK1sLVRuit3+lXbubDc7zq6XLffknGZMW2wcazd+Kq71nE8We7mgDmO/JvwAPkTP94QqDtJrfRNF/fIA51FZHb56nb+naOEL/qbJmAQMiuLhMiuuYaU30Kgk=; X-UUID: 6bca7c7958154cdd95dda9d0a26297db-20210816 Received: from mtkcas35.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 89222370; Mon, 16 Aug 2021 09:18:20 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 16 Aug 2021 09:18:17 +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 09:18:15 +0800 Message-ID: Subject: Re: [PATCH v6 6/9] soc: mediatek: mmsys: instantiate mdp virtual device from mmsys 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" , Matthias Brugger , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , Date: Mon, 16 Aug 2021 09:18:16 +0800 In-Reply-To: <20210802220943.v6.6.Ie4214d2cc73ab276dd7c41d4f63c98e011fb42d4@changeid> References: <20210802121215.703023-1-eizan@chromium.org> <20210802220943.v6.6.Ie4214d2cc73ab276dd7c41d4f63c98e011fb42d4@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: D1B8CF45BE547C01305672B36FAAF841C10023D9984BDBA7059507DD2D056FB62000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIxLTA4LTAyIGF0IDIwOjEyICswODAwLCBFaXphbiBNaXlhbW90byB3cm90ZToN Cj4gQSB2aXJ0dWFsIGRldmljZSB0aGF0IGlzIHByb2JlZCBieSB0aGUgbXRrX21kcF9jb3JlIGRy aXZlciBpcw0KPiBpbnN0YW50aWF0ZWQgYnkgdGhlIG10a19tbXN5cyBkcml2ZXIuDQo+IA0KPiBU aGlzIGJldHRlciByZWZsZWN0cyB0aGUgbG9naWNhbCBvcmdhbml6YXRpb24gb2YgdGhlIGhhcmR3 YXJlIGFuZA0KPiBkcml2ZXI6IHRoZXJlIGFyZSBhIG51bWJlciBvZiBoYXJkd2FyZSBibG9ja3Mg dGhhdCBhcmUgdXNlZCBieSB0aGUNCj4gTURQDQo+IHRoYXQgaGF2ZSBubyBzdHJpY3QgaGllcmFy Y2h5LCBhbmQgdGhlIHNvZnR3YXJlIGRyaXZlciBpcyByZXNwb25zaWJsZQ0KPiBmb3IgZHJpdmlu ZyB0aGVtIHByb3Blcmx5Lg0KPiANCj4gU2lnbmVkLW9mZi1ieTogRWl6YW4gTWl5YW1vdG8gPGVp emFuQGNocm9taXVtLm9yZz4NCj4gLS0tDQoNClJldmlld2VkLWJ5OiBIb3Vsb25nIFdlaSA8aG91 bG9uZy53ZWlAbWVkaWF0ZWsuY29tPg0KDQo+IChubyBjaGFuZ2VzIHNpbmNlIHYxKQ0KPiANCj4g IGRyaXZlcnMvc29jL21lZGlhdGVrL210ay1tbXN5cy5jIHwgMjAgKysrKysrKysrKysrKysrKysr Ky0NCj4gIDEgZmlsZSBjaGFuZ2VkLCAxOSBpbnNlcnRpb25zKCspLCAxIGRlbGV0aW9uKC0pDQo+ IA0KPiBkaWZmIC0tZ2l0IGEvZHJpdmVycy9zb2MvbWVkaWF0ZWsvbXRrLW1tc3lzLmMNCj4gYi9k cml2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