Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1190329ybm; Sat, 30 May 2020 01:17:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhtqWs2VJwlR7DTbei5G1DDsoy+7//K4/ZevsAsUd6QVTF2lmpeJvtDeDPIl+6xkKUyVIu X-Received: by 2002:aa7:c68b:: with SMTP id n11mr4704689edq.278.1590826624748; Sat, 30 May 2020 01:17:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590826624; cv=none; d=google.com; s=arc-20160816; b=dm2H4KJjUU/fkHDoOKv1lEoBtEL1CJWAOHzDpMgBn3Ark/k/5AuNZM0EVH7lnVQ3YP BQJa4TRug1AOD1tmAWr0/h5vA/xpq3GhLMyiVcY+CKUv3Fjb8rJRI/JNhlypu64ZoIm+ aRjMapdYJnVnA69tYzNcY9QiBoZeKgWMp/EvBSINQW1zLXxuaSpGTT8bGTv1ZaCiWEGO +yJgxRFwXRjZfYNpnemSdQt6jBvTxW2tOutTQ6TOGRKON6dsIfy9o9qNPvrvrnoPqSr+ fKSAO7nEeNC8ibP3jKm1FPJCzyhYe0pNwN61PP2AOX/1UMk7lWlljHCM2M1bhhVnLkpm qJ8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qxSwZMn2syeUd7Ci/gpOqpuv4Qbe+9JTNy596S3gEt0=; b=Idh/fegjCe8/AGLv4UZMikZ28JGomiGe9Le7SF4XvCsgbntNLVpFlEmmvjEmgnLghz uLA3+e5f1zX+QDaKD1Estsep7FSkOpYjTBEdDrSDmylqJLWUrdn5BHbcb3CBs0YnLBv1 zgUp6PKHn3V5w30GIIq+azpvOfTIsK5Wu0AUKDpH31BRtfs/XopGLRYJeH7coGkqexSg KPcFvD8aEKCMiyngzBjpA07EHz7Xe3qEh6i2oxx7mhUxzoh6UqLD1hlb9zalh8xPUXpI VuhW1YG5mJIAmM3yIh/m2LUHsgWvY+sjq44g7d8QdlxO3LWp2u2AV8jYo3jWoIDR0WnT Sb+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=W2vucEDQ; 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 n6si566245ejy.140.2020.05.30.01.16.41; Sat, 30 May 2020 01:17: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=W2vucEDQ; 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 S1729022AbgE3IOI (ORCPT + 99 others); Sat, 30 May 2020 04:14:08 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:50614 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725813AbgE3IOH (ORCPT ); Sat, 30 May 2020 04:14:07 -0400 X-UUID: ab71ab33588e4d61868039095faf01dc-20200530 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=qxSwZMn2syeUd7Ci/gpOqpuv4Qbe+9JTNy596S3gEt0=; b=W2vucEDQpjRnIPAjPiZbBtjb6Xlmt9VoZ8dCZ+V0w2A+3/YU25idHJ9CxgBlx3gkoURsHFCazOgGo0o7EEwOfSjD5iEux7Yrersxq4p/b1yftDkknyyZXNQKzy1HF2Tgl1lO1PdEm7/7guIZVUTqcynDCk2W/NP8VhZZ6y+v5BU=; X-UUID: ab71ab33588e4d61868039095faf01dc-20200530 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 131641489; Sat, 30 May 2020 16:14:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 30 May 2020 16:14:00 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 30 May 2020 16:14:00 +0800 From: Yong Wu To: Matthias Brugger , Joerg Roedel , Rob Herring CC: Evan Green , Robin Murphy , Tomasz Figa , Will Deacon , , , , , , , , , Nicolas Boichat , Matthias Kaehlcke , , , , , , , CK Hu , Philipp Zabel Subject: [PATCH v4 11/17] drm/mediatek: Get rid of mtk_smi_larb_get/put Date: Sat, 30 May 2020 16:10:12 +0800 Message-ID: <1590826218-23653-12-git-send-email-yong.wu@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1590826218-23653-1-git-send-email-yong.wu@mediatek.com> References: <1590826218-23653-1-git-send-email-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org TWVkaWFUZWsgSU9NTVUgaGFzIGFscmVhZHkgYWRkZWQgdGhlIGRldmljZV9saW5rIGJldHdlZW4g dGhlIGNvbnN1bWVyDQphbmQgc21pLWxhcmIgZGV2aWNlLiBJZiB0aGU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