From patchwork Sun Oct 1 10:27:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13405343 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16D0FE748F3 for ; Sun, 1 Oct 2023 10:29:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234807AbjJAK3g (ORCPT ); Sun, 1 Oct 2023 06:29:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234809AbjJAK3f (ORCPT ); Sun, 1 Oct 2023 06:29:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01C9DD9; Sun, 1 Oct 2023 03:29:34 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9046CC433C9; Sun, 1 Oct 2023 10:29:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696156173; bh=zfzbAStTFVX6U2zX+aSRy9Gxw5q86a6AQxF5OD8cZgs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kYgcs4MzrMOL/3FutGcYUjOmXhy3zID2VXsANP1uqJ+tMBI+WUsfMlV9an3cMiFot Emhbe+pif2XLj6EsoMrcwVVwQ1Da22wPa/pyxZ97MgD/M9J44NZL0jvS8FmjhEZcHc mNms74eaUc4UVz72XfA3z+TP1t+zLhbbZxVCt2OFXNT3JoDWQqsMsklXz9TYQMAj+A 8DJPEgz0DqteG+ke6zg/3GFAVbXxIafJU8HJWuO1L3wgdNOvuq7kPJmQ+rK/vY5bEm TpPGCWx4r+xlbXCFXHviQjirS17Zy+E1AkqKXb0MUkIH4nCf4jm/VLasmKESVY3hBl W2OWKQcEOHIFg== From: Mark Brown Date: Sun, 01 Oct 2023 11:27:51 +0100 Subject: [PATCH 4/7] mfd: tps6586x: Convert to use maple tree register cache MIME-Version: 1.0 Message-Id: <20231001-mfd-ti-maple-v1-4-0657862de3f6@kernel.org> References: <20231001-mfd-ti-maple-v1-0-0657862de3f6@kernel.org> In-Reply-To: <20231001-mfd-ti-maple-v1-0-0657862de3f6@kernel.org> To: Lee Jones , Tony Lindgren Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=830; i=broonie@kernel.org; h=from:subject:message-id; bh=zfzbAStTFVX6U2zX+aSRy9Gxw5q86a6AQxF5OD8cZgs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGUoCBJzowV08mP3WavQ7vJbo+gp4biMRFj0Mm Cl+mj9prwGJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRlKAgAKCRAk1otyXVSH 0CSxB/9Q5nu+X+y2PK3fl/BaScyR4ZCLrkJpI70UUQdboSKX34Tp7x8f8VgYEtZ9pvEMHFzLwlw 5mxN7zPM4/75eWcI7ftRFBhAA3c6ns8caS477V5zMQPY/kUCR25Y8pGJQAC4/DBgFygxyQtXEyU w/sqBwnQoJNseyYgGqA+X5fKbycHUH1hMKoOACSjKkjCyD7ps5AdbPJYrs/IVm7Ps3Z35tfQYwY F/6Q27qF7CYSeifH7k9KRVWrCrQVN2xI6PSAJdQvpc3yQ8iOtgvPcUPmQ4T/rViGCleAT0ceA2F auqkOnrGiQK0iKskzwXMDFSZDAzwr1V3/zFYVJkgapS94Qvi X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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: Mark Brown --- drivers/mfd/tps6586x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c index 55675ceedcd3..378ee626c04d 100644 --- a/drivers/mfd/tps6586x.c +++ b/drivers/mfd/tps6586x.c @@ -454,7 +454,7 @@ static const struct regmap_config tps6586x_regmap_config = { .val_bits = 8, .max_register = TPS6586X_MAX_REGISTER, .volatile_reg = is_volatile_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static struct device *tps6586x_dev;