Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp455346pxj; Thu, 10 Jun 2021 05:05:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLg4bCklFJKqC+fUkZ9vRCxCe73kBkJ7H55sxuBuVOihIiuc8mAJOu+DexnbZbHXFyjrwk X-Received: by 2002:a50:ed82:: with SMTP id h2mr4476036edr.140.1623326734930; Thu, 10 Jun 2021 05:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623326734; cv=none; d=google.com; s=arc-20160816; b=CMWlAO3DykEf2+xHbPEVF6bfEsAZnKNWd04Qqp0jOd0Gg4fFh5I70pjkpoGhljoDgg hB78oNwOezL8Cu/aShqQu6A7jsBiojo3mvRoaqVwOVbNUVBypDOT1hCC5DfB5SB7jgI/ 3kX+fNikzi8/4In6An+NZuInt4sG2a7Z9ckqCtuVC+8U85tbgfD+zWXRKdK2SvYQPqCw ViXN05ULcIz1XUJVkLJgrkYErO0dqLLtIQwskds6htOBuWtzuYlXbX3T8w2AlVCsCOzQ LjbVhno9w479MBHwDX74JGUCVlo3wGW0KduxZHc4dLWSgLCk6LQzkP5DhqoDBqYiaCrs e3eg== 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=nqdoQ9Nvfzyjq8sKsY1fXodFn06TJLmPAimZ1WxAizs=; b=lLvkMoKG/Zw0zBm/O42mLJ+/vuQ1EWbS+G5FECfTdMNgrxT9va4R7Tv3P5cV/ebODl zwRLiCtEsLHwugza0l2TpZm+b/Pv8YXXRHbr58w+3rYnZv7G4Z0ZZ/SQFM04RuQ5mnGH NNvouQpXy9m3cGP+7HUkdqyA3nB3OZq4st3MYU3o2Nri+h9ExuHmkHexrRUEp1vwuwtk KUQ8+dqCjXBnJacjx++7y0SemdkCfCBQpYKyXlWOz4niMhOUE8z0gMqWGDlEEvkrdVC7 q0yJtBYdZ4H55CSSMUGgEkW8u3UMcsqqCPqhlJ9V66s3Q9+4B3kAtzFoDihzklIQJclR Bvxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mF0lGPQE; 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 z11si2057503eja.613.2021.06.10.05.05.06; Thu, 10 Jun 2021 05:05:34 -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=mF0lGPQE; 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 S230293AbhFJMER (ORCPT + 99 others); Thu, 10 Jun 2021 08:04:17 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:2897 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230136AbhFJMEN (ORCPT ); Thu, 10 Jun 2021 08:04:13 -0400 X-UUID: 34cfeea152144764869170dcd899cd94-20210610 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=nqdoQ9Nvfzyjq8sKsY1fXodFn06TJLmPAimZ1WxAizs=; b=mF0lGPQEXi5KMZnS+yhgKQ34FvHA8Zn9gyNv2nX4/QE4Mm/dIpRI2lAWerYELTw7UTKKIQyqvrakfQnQCYHok97VaD/zYiOVxY3Jz32F+MullAflSfuqvYKEOjE8Nyb+iTYLkNW8EcbMSp+NYmziHmlYkvx2NFHDv60U75ZxKYE=; X-UUID: 34cfeea152144764869170dcd899cd94-20210610 Received: from mtkcas36.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 1285583454; Thu, 10 Jun 2021 20:02:11 +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; Thu, 10 Jun 2021 20:02:09 +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; Thu, 10 Jun 2021 20:02:08 +0800 Message-ID: <1623326528.23717.20.camel@mhfsdcap03> Subject: Re: [PATCH v5 13/16] media: mtk-vcodec: Get rid of mtk_smi_larb_get/put From: Yong Wu To: Matthias Brugger CC: Hsin-Yi Wang , 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: Thu, 10 Jun 2021 20:02:08 +0800 In-Reply-To: References: <20210410091128.31823-1-yong.wu@mediatek.com> <20210410091128.31823-14-yong.wu@mediatek.com> <1620822547.2983.8.camel@mhfsdcap03> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 31E46F2F90E698D9BE899FE64F40478A92B3CBEC8E1364EC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