From patchwork Tue Feb 6 07:13:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bo Liu X-Patchwork-Id: 13546735 X-Patchwork-Delegate: geert@linux-m68k.org Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67DFA12880D; Tue, 6 Feb 2024 07:13:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707203623; cv=none; b=VPZSq4EeJ1Lpn5FvP6QqHkJ0oqNlohE8sjz5gfzte3VwvuQFNudow8S0dPp0lcqL84+lsvkrGET0WFg0u2EriBwsNnkFoaTcgAbe3kunvG4WoKFA3Z2pK0qvBZsFhxPtR2IWwN6wKrFPKD+5ElXcRvrqWFEmjLZBJxpPAXLZuSY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707203623; c=relaxed/simple; bh=iQJdkPR8SAvx/jGjx9Gz/bscBOmOuhsP8uWNTMe8BVY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=g2jefs+PORIU3s1iy9l0mI3Hf/JHz0FWQHNLxFMD+29hqtgQ3bWhIcyWj+a0WX10YFHbKlAu6AAMpiPq67hOxmZ134Xn4ZQqAa57UrO5ZcHMpNIY0OkabjvuxnhedOpGQjoP/8U1TcLOgHke2y7qbVdpQCw9OpbuJYsnzzby750= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com; spf=pass smtp.mailfrom=inspur.com; arc=none smtp.client-ip=210.51.61.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inspur.com Received: from ssh248.corpemail.net by ssh248.corpemail.net ((D)) with ASMTP (SSL) id CZT00036; Tue, 06 Feb 2024 15:13:36 +0800 Received: from localhost.localdomain.com (10.73.45.222) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.34; Tue, 6 Feb 2024 15:13:36 +0800 From: Bo Liu To: , , , , , , , , , CC: , , , , , , Bo Liu Subject: [PATCH 05/18] mfd: bcm590xx: convert to use maple tree register cache Date: Tue, 6 Feb 2024 02:13:01 -0500 Message-ID: <20240206071314.8721-6-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20240206071314.8721-1-liubo03@inspur.com> References: <20240206071314.8721-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2024206151336ec2d835c1ca5d9c2e9f058ff5cffbd80 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. Signed-off-by: Bo Liu --- drivers/mfd/bcm590xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/bcm590xx.c b/drivers/mfd/bcm590xx.c index 92eede9a5e61..8b56786d85d0 100644 --- a/drivers/mfd/bcm590xx.c +++ b/drivers/mfd/bcm590xx.c @@ -27,14 +27,14 @@ static const struct regmap_config bcm590xx_regmap_config_pri = { .reg_bits = 8, .val_bits = 8, .max_register = BCM590XX_MAX_REGISTER_PRI, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static const struct regmap_config bcm590xx_regmap_config_sec = { .reg_bits = 8, .val_bits = 8, .max_register = BCM590XX_MAX_REGISTER_SEC, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int bcm590xx_i2c_probe(struct i2c_client *i2c_pri)