Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3946424pxj; Tue, 8 Jun 2021 02:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0pFWO3b3S4wrh5eC1ydEAop8ZlQ4YWqZATNThREqUZqI5TclUVbB7avPJpEi/drTVjr18 X-Received: by 2002:a17:906:70d4:: with SMTP id g20mr9574127ejk.327.1623145175088; Tue, 08 Jun 2021 02:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623145175; cv=none; d=google.com; s=arc-20160816; b=rCsxzGaPE9Mfbwlq5EzyCKTrRkjrz4WBnyBOCnGlz8hf62nlTCoSsg0LkT0QrKzexd HRvxPdDhwwRwHYsRUm4WuUSpjV+/LAP7qE4CJVy/IS4ah1K5dLncXnrv0e3LYjezSpbq EE5EQQ3LoD7shBF3JhAFuyncLJX4c+9X6E9zsu/OZbfe2T0souTbKAmhTJwxAxUehN5b qsKnYpyKXTLHHCbo/vdWQnXE3e3lxuj3T59Bl/diPT78ixBvGsEG0kplJENqzob0fQvQ p5gx9AJkZCqxWeg258x5vbl/ahXP1mBRXZQejuroWNm0iVSTa6x+9beE76MW9wVhoWIE vFgg== 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=+B2QImP6/+3dV4dUubTd73D2XzItTeRR9Dm1MA2u5aE=; b=JeE4PZhDN6Sv9JG4nSeGIJ/ctesaRsd8MvfBPp/kXTjKSYb9hdWTRuiIkdY6aH37LQ jBR+pawYPy8/GSmOjYvs/hGW4pnU7261jByCTWHKsHj53/c6d7k5uJEY79UxM+c0Vtqc 2FUj5BUh+H9re3JPsFaBKadcCZEU1V6Jc0WY2mGMGIM+sRaiV1KutVmbLCZn+qVEfHGD mWd8A25r942XKWlVvnJ3m/TuKMl41Q8AE0xqe4TqWtug3dcCf0Pf1vLAcLObgPK/31km L1vqEC2kN/UGArxJu1sO/kh2kOUoiB3Ir/FUn3V1gHbZCJCJ8OGOS0Gsfj2ZS690TC+C 8s9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lTgFCwz2; 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 2si7704952ejj.434.2021.06.08.02.39.10; Tue, 08 Jun 2021 02:39:35 -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=lTgFCwz2; 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 S230212AbhFHJiB (ORCPT + 99 others); Tue, 8 Jun 2021 05:38:01 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:35139 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229678AbhFHJiB (ORCPT ); Tue, 8 Jun 2021 05:38:01 -0400 X-UUID: 3e9002f43fa04a4f8ece9a742ed08a52-20210608 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=+B2QImP6/+3dV4dUubTd73D2XzItTeRR9Dm1MA2u5aE=; b=lTgFCwz2jqS7rYdq8AlB3TCHlmdYVfQ0e5K23qnsgpDL/GfE9uYxvDarwe84n/tdOqc+4pPW3ggd/TMZXjTqj47PX3Wzzsc7rlxFRLi19BQJ1Ur5t7c/FUfbzxPH4cRKNLijkMFxkct2KhXzDc4C3DjU99jpcG29T8yzotJNs2I=; X-UUID: 3e9002f43fa04a4f8ece9a742ed08a52-20210608 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 1596794492; Tue, 08 Jun 2021 17:35:59 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 8 Jun 2021 17:35:54 +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; Tue, 8 Jun 2021 17:35:52 +0800 Message-ID: <1623144943.7079.1.camel@mhfsdcap03> Subject: Re: [PATCH v5 08/16] media: mtk-mdp: Get rid of mtk_smi_larb_get/put From: houlong wei To: Yong Wu CC: Matthias Brugger , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Evan Green , Robin Murphy , Tomasz Figa , Will Deacon , "linux-mediatek@lists.infradead.org" , srv_heupstream , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "iommu@lists.linux-foundation.org" , Youlin Pei =?UTF-8?Q?=28=E8=A3=B4=E5=8F=8B=E6=9E=97=29?= , Nicolas Boichat , Matthias Kaehlcke , Anan Sun =?UTF-8?Q?=28=E5=AD=99=E5=AE=89=E5=AE=89=29?= , Chao Hao =?UTF-8?Q?=28=E9=83=9D=E8=B6=85=29?= , Ming-Fan Chen =?UTF-8?Q?=28=E9=99=B3=E6=98=8E=E6=B1=8E=29?= , Yi Kuo =?UTF-8?Q?=28=E9=83=AD=E6=87=BF=29?= , "eizan@chromium.org" , "acourbot@chromium.org" , Minghsiu Tsai =?UTF-8?Q?=28=E8=94=A1=E6=98=8E=E4=BF=AE=29?= Date: Tue, 8 Jun 2021 17:35:43 +0800 In-Reply-To: <20210410091128.31823-9-yong.wu@mediatek.com> References: <20210410091128.31823-1-yong.wu@mediatek.com> <20210410091128.31823-9-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: 73160F7F9D6C1295E7F9E9F7A0C989361B8103D51415275D79DD2191FBD6D2842000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU2F0LCAyMDIxLTA0LTEwIGF0IDE3OjExICswODAwLCBZb25nIFd1IHdyb3RlOg0KPiBNZWRp YVRlayBJT01NVSBoYXMgYWxyZWFkeSBhZGRlZCB0aGUgZGV2aWNlX2xpbmsgYmV0d2VlbiB0aGUg Y29uc3VtZXINCj4gYW5kIHNtaS1sYXJiIGRldmljZS4gSWYgdGhlIG1kcCBkZXZpY2UgY2FsbCB0 aGUgcG1fcnVudGltZV9nZXRfc3luYywNCj4gdGhlIHNtaS1sYXJiJ3MgcG1fcnVudGltZV9nZXRf c3luYyBhbHNvIGJlIGNhbGxlZCBhdXRvbWF0aWNhbGx5Lg0KPiANCj4gQ0M6IE1pbmdoc2l1IFRz YWkgPG1pbmdoc2l1LnRzYWlAbWVkaWF0ZWsuY29tPg0KPiBDQzogSG91bG9uZyBXZWkgPGhvdWxv bmcud2VpQG1lZGlhdGVrLmNvbT4NCj4gU2lnbmVkLW9mZi1ieTogWW9uZyBXdSA8eW9uZy53dUBt ZWRpYXRlay5jb20+DQo+IFJldmlld2VkLWJ5OiBFdmFuIEdyZWVuIDxldmdyZWVuQGNocm9taXVt Lm9yZz4NCj4gLS0tDQo+ICBkcml2ZXJzL21lZGlhL3BsYXRmb3JtL210ay1tZHA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