Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2799328pxv; Mon, 12 Jul 2021 02:06:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrfo8Uk5YhgIGwoFIc4SjNmiYcgoYj7N8exP3xBzLqQI22pZhbrgXdmGlqqVxmmliDZ7Dq X-Received: by 2002:a05:6e02:12e1:: with SMTP id l1mr2005688iln.0.1626080777330; Mon, 12 Jul 2021 02:06:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626080777; cv=none; d=google.com; s=arc-20160816; b=h4HqHMjsS+3BHGykco4M3tnzFq2hnmLHtOxFImSH2oGZaSDsX98doo3VaR2UXdMC/7 3F6bXFgKMtbugBbN2rlc/3m8nPOytlNOwivxvKxmFZyCG2JVU+IIBKsnLCMDcWoGZ2oI MUddp4gX88zzhdh9GJnJYXqyNEqZ1/SxQYMAkCOePYdKvzX3ZxQ3MRE2yhs6kjNP47XI Zp9AUbNV84Sk3hL0z5xVTTbXVSpcRoCLd7hUcFilDpj7ujcoa/7jclVGyIEYqYhILeS5 NK2uat+5ZkGg3l10kbFH93/EmPnsEB3zDfvRgJ9hgH0k0GPdl/MeCjH21ADijdSP5zYs Kg3Q== 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=pYihUe16LMSA8Z5B8sReIfUro/yCMswXaige3lLlv3k=; b=m/gKe+q4kdmehc/QzhHtfHSihOy3Z/KjVB4IGoOvcf8vNB0RSDPyvDNQhyalUFC11C IwYaFdqm6RrhgNS8a+0Atw49/ho0uxN+m4YrnIo404MNAphcEgaWMUnYv9LpnE64nlAC obb9HwV08yvy4+jOVMa7appdyKsgDjCcp6T6G6c6Gpq2ivbloMLsIfVWkXCJk7umxRnG IknxCwg3vdOvi6UAJTjvqXIcUFKJ1LF8aYHARSj/NlYr7kGed4qX4cY9lmJ+pSGqOxE1 PxgX9pdMbhBrLoI0rFhk4xJvyJ3N8GmZVTHycGj5O5tHVroYq9cahAdQrS80YI77LkD1 UxCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WH3RlvhM; 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 i3si2186650ila.8.2021.07.12.02.06.05; Mon, 12 Jul 2021 02:06:17 -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=WH3RlvhM; 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 S1354004AbhGLJF2 (ORCPT + 99 others); Mon, 12 Jul 2021 05:05:28 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:60826 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1355638AbhGLIKK (ORCPT ); Mon, 12 Jul 2021 04:10:10 -0400 X-UUID: 8eab63c0825a494fb72f3489822534c5-20210712 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=pYihUe16LMSA8Z5B8sReIfUro/yCMswXaige3lLlv3k=; b=WH3RlvhMtzj5bi2g9GfaCo+Qjkau9BbZftNtDEhMvaunJb4wP5HVjQ9MGlDoAKJV5/RUX6mA/F0BfkDUssc72SEuowPyFrG8JNGOgS5HzMKvQvkRBzY7hW5xO4h0MQQuMQ6erTW+g4QTQvKOyYE6hf+BdfG/bMOsO/luqbrahTs=; X-UUID: 8eab63c0825a494fb72f3489822534c5-20210712 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 405197711; Mon, 12 Jul 2021 16:07:16 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Jul 2021 16:07:08 +0800 Received: from [10.17.3.153] (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 12 Jul 2021 16:07:07 +0800 Message-ID: <1626077227.7221.20.camel@mhfsdcap03> Subject: Re: [PATCH v1, 06/14] media: mtk-vcodec: Add irq interface for core hardware From: mtk12024 To: Tzung-Bi Shih CC: Alexandre Courbot , Hans Verkuil , Tzung-Bi Shih , "Tiffany Lin" , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa , Hsin-Yi Wang , "Fritz Koenig" , Irui Wang , , , , , , , Date: Mon, 12 Jul 2021 16:07:07 +0800 In-Reply-To: References: <20210707062157.21176-1-yunfei.dong@mediatek.com> <20210707062157.21176-7-yunfei.dong@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgVHp1bmctQmksDQoNClRoYW5rcyBmb3IgeW91ciBkZXRhaWwgZmVlZGJhY2suDQpJIGFkZCB0 aGUgZGVzY3JpcHRpb24gYWN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