Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4457938pxj; Wed, 12 May 2021 06:12:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8DvCWoY2URAkoRQPfSA5p6KLWWYcueGhW126R7kE83/Gl3sLiYOJaos6PZsue59d7qLBs X-Received: by 2002:a17:906:fcdc:: with SMTP id qx28mr5840133ejb.375.1620825124569; Wed, 12 May 2021 06:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620825124; cv=none; d=google.com; s=arc-20160816; b=XdqjrHMxPmeCUhU3WEtooFtN7migapKEo1YWOIjIHNmSrdsNZZWdOIsAnqN8tPfYI+ 6e9euNo0poXNnxyQcgIbvpzl4ljC5uyORu15kZVa5vrVx4PuNyFsL88GyUZWLRQ9LEa/ T5CyXXq2mSPPfd1icdUdGATDVJi5myloZrdIGYClGqluJxK5pCgCZNmHjZSPrRZGJ5pK jQUEaltWYKRvvLSX7Icg2gSK0acpxhcJuGg8i+pX6IZ74FmiM4BjTshEHQbime3WPJ7d MmZU7lybf737gOX2uCCyxLnN0WvYQy0LE/KwNlRVGPKBu9DcMeCyRsNm38AuClpIU775 d4bQ== 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=ewPs1Oa6a3lyJ4v/+R+Na+4N5EnjMReDZVRwjMtKeis=; b=lbwyLzMtlleBl/GBu6XbbdrHNDWkWsjmrz3r8iCTzW61SDtRL3B4+3TSBURlTEp31R afozEhKDHppxTuqVoNj/szzRARCyHr7VAbBiymD1Bw1xup6iGJEM22tvVXzLemeJBXZV 5z/J0hpUlWfbEXfwbuOeOukpS8xAyqRafJ8qbPqhL6OpAHS8CVQ1cT/4vMaQ34hXJGed vUk+ecmMT6l1CBKd0vAAnoLN7dPj3uonrJG70oabDcT1BvhumCcr5eS3Wpe1XXpy1ofG 0VfZC8Il08bjD4yGV+xxrWyW5urjPC1+uDBLQo6uDd5e+9KO2EY2veM7yiQKaPgKfhkS YPyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ewEoqOKv; 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 r21si3164569eda.500.2021.05.12.06.11.40; Wed, 12 May 2021 06:12:04 -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=ewEoqOKv; 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 S232216AbhELMa2 (ORCPT + 99 others); Wed, 12 May 2021 08:30:28 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:34912 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232196AbhELMa1 (ORCPT ); Wed, 12 May 2021 08:30:27 -0400 X-UUID: 56acb10324ea40e2bea1352a797416fa-20210512 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=ewPs1Oa6a3lyJ4v/+R+Na+4N5EnjMReDZVRwjMtKeis=; b=ewEoqOKvSAWVqKqd0u9hldRL4upWs4M/EifpIJ8EQaXDgkQ3tFEDnplJWcc44suitQcRVH3My30OOlv9FVrLYXvY5Mmt5Wqwo4vJJRN/nqjCvKEWg4bzO6izgAZi/BpIqHHp4e4b1//axLcRhg4In1omHMg+L8VZUrmmL5Q0Ulg=; X-UUID: 56acb10324ea40e2bea1352a797416fa-20210512 Received: from mtkcas32.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 172632164; Wed, 12 May 2021 20:29:13 +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; Wed, 12 May 2021 20:29:08 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 12 May 2021 20:29:07 +0800 Message-ID: <1620822547.2983.8.camel@mhfsdcap03> Subject: Re: [PATCH v5 13/16] media: mtk-vcodec: Get rid of mtk_smi_larb_get/put From: Yong Wu To: Hsin-Yi Wang CC: Matthias Brugger , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Evan Green , Robin Murphy , Tomasz Figa , Will Deacon , "moderated list:ARM/Mediatek SoC support" , , Devicetree List , lkml , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , , , Nicolas Boichat , Matthias Kaehlcke , , , , , , Alexandre Courbot , Tiffany Lin , Irui Wang Date: Wed, 12 May 2021 20:29:07 +0800 In-Reply-To: References: <20210410091128.31823-1-yong.wu@mediatek.com> <20210410091128.31823-14-yong.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 7780E5B9D2712AB2AE1806AA941E22A5D94145B0E8BDFD93F8EBEB7BFDD94F3E2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID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