Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33159C433F5 for ; Fri, 3 Dec 2021 01:50:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236393AbhLCBxf (ORCPT ); Thu, 2 Dec 2021 20:53:35 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:46636 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229678AbhLCBxe (ORCPT ); Thu, 2 Dec 2021 20:53:34 -0500 X-UUID: 961fbc40fc0044feae65e29ead907f67-20211203 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=U8O6yZXk1USP9a3ivghloEgtx5u1o7Sb0yAqTaln6E0=; b=LXCZxpgvnJNaixibysFu6THwLAjpiQDuMaOu82bZHmCJnAK7sVz3xqv0oqO6GTzpzIZH/IfdViNKKhRSS67GViVX5+zm1B+ekaF/LaqJsxEmjyd4HT0xSv2IAUu+4J7ykDh6aAqH0p7vISoasIF2U+WA+MV7e6Qa51viR+osql0=; X-UUID: 961fbc40fc0044feae65e29ead907f67-20211203 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1071865208; Fri, 03 Dec 2021 09:50:06 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 3 Dec 2021 09:50:05 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 3 Dec 2021 09:50:04 +0800 Message-ID: Subject: Re: [PATCH v11, 04/19] media: mtk-vcodec: export decoder pm functions From: "yunfei.dong@mediatek.com" To: Benjamin Gaignard , Alexandre Courbot , Hans Verkuil , "Tzung-Bi Shih" , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa CC: Hsin-Yi Wang , Fritz Koenig , Dafna Hirschfeld , Daniel Vetter , dri-devel , Irui Wang , , , , , , , Date: Fri, 3 Dec 2021 09:50:04 +0800 In-Reply-To: <2fa4e19f-d57c-6264-4284-8387c4182d1f@collabora.com> References: <20211129034201.5767-1-yunfei.dong@mediatek.com> <20211129034201.5767-5-yunfei.dong@mediatek.com> <2fa4e19f-d57c-6264-4284-8387c4182d1f@collabora.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQmVuamFtaW4sDQoNClRoYW5rcyBmb3IgeW91ciBzdWdnZXN0aW9uLg0KT24gVHVlLCAyMDIx LTExLTMwIGF0IDE0OjM0ICswMTAwLCBCZW5qYW1pbiBHYWlnbmFyZCB3cm90ZToNCj4gTGUgMjkv MTEvMjAyMSDDoCAwNDo0MSwgWXVuZmVpIERvbmcgYSDDqWNyaXQgOg0KPiA+IFJlZ2lzdGVyIGVh Y2ggaGFyZHdhcmUgYXMgcGxhdGZvcm0gZGV2aWNlLCBuZWVkIHRvIGNhbGwgcG0NCj4gPiBmdW5j dGlvbnMNCj4gPiB0byBvcGVuL2Nsb3NlIHBvd2VyIGFuZCBjbG9jayBmcm9tIG1vZHVsZSBtdGst dmNvZGVjLWRlYywgZXhwb3J0DQo+ID4gdGhlc2UNCj4gPiBmdW5jdGlvbnMuDQo+IA0KPiBUa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