From patchwork Sun Oct 1 10:27:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13405340 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 C9715E748ED for ; Sun, 1 Oct 2023 10:29:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234793AbjJAK3c (ORCPT ); Sun, 1 Oct 2023 06:29:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234785AbjJAK3b (ORCPT ); Sun, 1 Oct 2023 06:29:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7302BC2; Sun, 1 Oct 2023 03:29:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E8A3C433C9; Sun, 1 Oct 2023 10:29:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696156169; bh=pX3DD45tsnV3iImQ76eKtErG7EdvxzNMH/u0Fq7YL+Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QPZLVO+G0xQcjivZ9rf9EZB0v1mVaDSSXQSAiPRaGFdl8d+GcB55DAEUmYflB+gn4 pg1VaczzD2rciuQhH2+yBKabfVb1pprZ8XvDj4aFPpP1q8E9o8gRglyHL8QW6YfiUX Jyen2aqUBF1VglNoFyuNbrjZZMtaIj/mI25JXUQij9GZ/x4DfBqCJDFBECFcHUmcpk OERVwsK2rm66YEYfDBDxEjjddYBSPKqW29tXRmc+GByEhie3FnRYn6pX7n4p3ZfYaK Yz3c6V1rvsLGDn1iu2p21gynbWiqBv6wrW6LuR0O8z56WYV1KexuUOzw2tfQLbs4ru DsaAzGSuF6SRQ== From: Mark Brown Date: Sun, 01 Oct 2023 11:27:48 +0100 Subject: [PATCH 1/7] mfd: tps65086: Convert to use maple tree register cache MIME-Version: 1.0 Message-Id: <20231001-mfd-ti-maple-v1-1-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=847; i=broonie@kernel.org; h=from:subject:message-id; bh=pX3DD45tsnV3iImQ76eKtErG7EdvxzNMH/u0Fq7YL+Q=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGUoA67sNocFji/GfAL6XKHLsVj66iX6QgTFRq B2h0jGCUVqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRlKAAAKCRAk1otyXVSH 0OEYB/9zK/p1yuyWjf7wuwpd9ICEBeAoV52YT/8TaNEqzxdQTkaUYQkKIFpozOBxreixF+d41t6 jYEDzyJuf2AHbwdAyX30LEAjKhAtSAUZpEzorEcm7frGUyUMoe6Zz0rcooTHBxWpYCa2W3g+rdT SAIBtD3WmBK8b98J6LGmkQg+g6pBVVKTjFhPDAOZLx/boyyfW9KRqGlq1IYWvAjyuU2CX81hTJg erF8j2I/6MeIzJs3QuP3xW0GsjA0dC58HtkPfPILUVtZgCZpUGS+QGNbd2gTNjTxL4yKm8ka/+x SOA9tPl0knouPPrioiSaQPaTM7g9vNw/wL43QiNtZkkTpa4v 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/tps65086.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65086.c b/drivers/mfd/tps65086.c index 9bb7d7d8dcfc..152179ee11ca 100644 --- a/drivers/mfd/tps65086.c +++ b/drivers/mfd/tps65086.c @@ -34,7 +34,7 @@ static const struct regmap_access_table tps65086_volatile_table = { static const struct regmap_config tps65086_regmap_config = { .reg_bits = 8, .val_bits = 8, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_table = &tps65086_volatile_table, }; From patchwork Sun Oct 1 10:27:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13405341 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 822E1E748F7 for ; Sun, 1 Oct 2023 10:29:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234801AbjJAK3d (ORCPT ); Sun, 1 Oct 2023 06:29:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234799AbjJAK3c (ORCPT ); Sun, 1 Oct 2023 06:29:32 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDC95BD; Sun, 1 Oct 2023 03:29:30 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CEF5C433CA; Sun, 1 Oct 2023 10:29:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696156170; bh=/VxdOJAySw27/fj7UgHN0P2mUR/wtgUc79z8VGSGBAY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=d/tGCYPSNOGPIJO5ODj6h9+jq1cEKEsxUucq17SkuapczsSjGjXrarTH25YAkF8nd ysWK4Me9ijSdT6p/nmlEdNBZ2MICmWwEEtzpUb81Uw8IPLVYOuLJ1dr5GbD55/8gHj xSX+1yLbRWiqDlkkXMkFb5HxytjL+gPCpgGxgtVz7rq1KMg1SiCG2M63EbEinMTlCG NhyhmLnyJiLtb+01YOBLVL+5IidTeIA2iC58bUCuy53RIEX3KQePxIi8MaVhhpXRBp oLRSUMb7p3CtZ7XYJaoYUKOde7j9HVszUvIfiB5ureBPJRNEo9c4M7x4rvnCsRcJ2c YSkRdHQUoJwug== From: Mark Brown Date: Sun, 01 Oct 2023 11:27:49 +0100 Subject: [PATCH 2/7] mfd: tps65090: Convert to use maple tree register cache MIME-Version: 1.0 Message-Id: <20231001-mfd-ti-maple-v1-2-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=833; i=broonie@kernel.org; h=from:subject:message-id; bh=/VxdOJAySw27/fj7UgHN0P2mUR/wtgUc79z8VGSGBAY=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGUoBQ4KBYoLQoPXhfYAXG3OR6Hy6IRKqDPle/ fjj49263YKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRlKAQAKCRAk1otyXVSH 0PjYB/98/4fGHM/WZVFH8dFcci6FwC6Lk/gr4eeyOSXpHxRAgc/O0RQ+MMdzyteujT31TsNlLvu F2x24VOhjAq8y2uX8HqodBhAGi+sQ994PlQ2j64NVfaxEWjoBnWkiyjxjk8+RPRtJ34rDL9ATlt jByRl2oz0WzkiWPqw03gzTGJwPOyVAzQJ4CLx0XI1UFO5ct1fJ6t5+eGVqb5GY1ZGrNBcnPtCVp h57r95BMVlXi9IzDBcoHpRVgK91kwpWg9tOWYgEbInWhgAIkf2m7UrOXnd23IJ3HCw9c0oOQ+gZ SOzpkkVXW5QGwmgcBGQ4jkK+xd7FnQCKveK87PgtqNiiyNCl 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/tps65090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index 9245e11219f3..b764badaa62a 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c @@ -151,7 +151,7 @@ static const struct regmap_config tps65090_regmap_config = { .val_bits = 8, .max_register = TPS65090_MAX_REG, .num_reg_defaults_raw = TPS65090_NUM_REGS, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = is_volatile_reg, }; From patchwork Sun Oct 1 10:27:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13405342 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 A06D8E748ED for ; Sun, 1 Oct 2023 10:29:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234810AbjJAK3f (ORCPT ); Sun, 1 Oct 2023 06:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234806AbjJAK3e (ORCPT ); Sun, 1 Oct 2023 06:29:34 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B348C2; Sun, 1 Oct 2023 03:29:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 135BCC433C8; Sun, 1 Oct 2023 10:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696156172; bh=NLkjuLmP8ZHYnEDlj9aw8Js+zXvvGMzVaSTTo6mhlJI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=h94iLeeqZl36APi1CtZvm5ODPxtO7cF3jsnYoCpYWU5A8zhuwG3edgDAgtHJDft8Y ZbBbhfXY3ugURGEnbRW/BTPfZ0p6oIpFgX/qlOQSkQyrTSEJLOrj7Fszm489COONg8 3yNn4Q1oqycHWioeR2vSxCfqzQpI1eA47/bA/07iICpzpZLJGu1TZ4wjH+pDElt4ZJ g1afprbCiN7hJB2x4sfCuPwfTjUClM9PaQdm7HjsjvmFE8j1RD5SS67qy+oIGGLNCV 7C5urw1DBsIBC/JFG4WaTjshVG1z58sGaz8hxEhm3VMaC51iWBY4yeiwGDp9zR5OEh UrWDQif/WLf4A== From: Mark Brown Date: Sun, 01 Oct 2023 11:27:50 +0100 Subject: [PATCH 3/7] mfd: tps65128: Convert to use maple tree register cache MIME-Version: 1.0 Message-Id: <20231001-mfd-ti-maple-v1-3-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=849; i=broonie@kernel.org; h=from:subject:message-id; bh=NLkjuLmP8ZHYnEDlj9aw8Js+zXvvGMzVaSTTo6mhlJI=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGUoCz9xvqGhKfg8tzTHfgVMKj3oUoEfVznXkh DRdf4iplgOJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRlKAgAKCRAk1otyXVSH 0JgYB/9tFhdkiGLUdd2CiJeWJ+o8d67mOgVKhnMxUtwpHTV6XePrRackmx9vj53/jRL7ZGWvSp5 Ls3/2/yH9ApuED88sGthiPVwJVb6ZuPW4eH0fzLotAqHOzRkMy9wvGovM5F/4MHYCn1KsqvKYUG 7H9/uZmsd/M6r70qFAr6W2PoR4Yn/7Yy8sGWo3YBgRhq18wV2nXPF782Sk4hgc7QPh2hgwrWgha gEZtZ1HRN6IfDdIQC9YGoPQNswT/9xURPfgKOli0EMxzZJnSkJlDRjZ241zmhqNREsYm+NxkpQQ jyjokFg+9AvZ/cLpDHD9RbHpA/4qT9LXbREn4ZksSBEZAPk+ 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/tps65218.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65218.c b/drivers/mfd/tps65218.c index 11e4e52b56be..427a2b97f117 100644 --- a/drivers/mfd/tps65218.c +++ b/drivers/mfd/tps65218.c @@ -127,7 +127,7 @@ static const struct regmap_access_table tps65218_volatile_table = { static const struct regmap_config tps65218_regmap_config = { .reg_bits = 8, .val_bits = 8, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_table = &tps65218_volatile_table, }; 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; From patchwork Sun Oct 1 10:27:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13405344 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 0E6FEE748ED for ; Sun, 1 Oct 2023 10:29:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234841AbjJAK3k (ORCPT ); Sun, 1 Oct 2023 06:29:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234799AbjJAK3h (ORCPT ); Sun, 1 Oct 2023 06:29:37 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E739D9; Sun, 1 Oct 2023 03:29:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1713CC433CB; Sun, 1 Oct 2023 10:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696156175; bh=QFovpwpspTFAgCNiGSH+/tKFEI4TJzP/NJt5hGNuj3s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=OE6KWzpxlfsTLmMg1nTi5oqSm5is2FaHGDsMmJHoC8RPLYXfx1nwDOeOdfvzMuVLM GAujla+K74K3W0hRw9dAllhGMsi9IvSip6uhijslE7RDQTrl/jvCv+FuTgNjly6amo C1SlQmDj6BTcaYwZ3ukHpjDaSOHFhKtAGHIEOLSZ3pMwQCqcHAnNoIBfrnw1mZhbST Ivcy8aLnKaDM2NWTHsam0UB8gYQcH1rd2KDh59yyAdvijH1wNWkT3AY1d9BBy3bcHx 16rhgR9C4y4KDepYfhNx63u4fpDqoEHegaKq9AaIkFaW02amq1o1BeGf1feESEEUNe w0iLnYyULl8eQ== From: Mark Brown Date: Sun, 01 Oct 2023 11:27:52 +0100 Subject: [PATCH 5/7] mfd: tps65910: Convert to use maple tree register cache MIME-Version: 1.0 Message-Id: <20231001-mfd-ti-maple-v1-5-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=856; i=broonie@kernel.org; h=from:subject:message-id; bh=QFovpwpspTFAgCNiGSH+/tKFEI4TJzP/NJt5hGNuj3s=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGUoDmQK2/Qt0MHtnMY9wVm3+0fPuhKDsVLKu3 3runPv4yP6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRlKAwAKCRAk1otyXVSH 0Et0B/4t3DKIsjdp8lxHkOn4d9/YA+Rlq8mV6orroChC10glYNM/6lKfxFfUCZ08mnMJmj8iN6W rRbQlOrggWsmy7i7NEpbQs7xtwuS99+Y2+5jFZquu3f8s/yRLrhtVPkDHTd8Rlid3Bu7V6+Z7xw zJemNCMh4UiruHRW14+Z4FlFSEa3gRJvU22HL2m0mmg9ybGKxrJmA7UWdEUJ/NwI4LZ+v+pCmRl 4TvUMLgdZS016OEi+F/s4CRKSTikhw8/k6akn8BJieIo3lqD+ma3/t2tUY3umJNXZAREARjRJ+Q BXJolslsf4siHdKC4+otdI+Kpj4paZh5DQN27JPiMIVybiJN 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/tps65910.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index 41408df1712f..307d30da274b 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -281,7 +281,7 @@ static const struct regmap_config tps65910_regmap_config = { .val_bits = 8, .volatile_reg = is_volatile_reg, .max_register = TPS65910_MAX_REGISTER - 1, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int tps65910_ck32k_init(struct tps65910 *tps65910, From patchwork Sun Oct 1 10:27:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13405345 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 41F65E748E9 for ; Sun, 1 Oct 2023 10:29:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234853AbjJAK3r (ORCPT ); Sun, 1 Oct 2023 06:29:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234834AbjJAK3k (ORCPT ); Sun, 1 Oct 2023 06:29:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 227DEF2; Sun, 1 Oct 2023 03:29:37 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95F50C433AB; Sun, 1 Oct 2023 10:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696156176; bh=V5NO9Eimgbw69L8Od1rfVYN0dRB+fO4oXX7TicgV984=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=qEvo8uYvYQl5wCj9aAVrWgmZjbzhFA/cz+wLt20ADTMaVUnqvN/UapsW+yZd4Doeb 1PutTEahLi8TdbdklaUDNjvcIm7FLyNY1Tsd7bHBst9pzrpqfMG8/EUASAuUi6Z+Zx J9vBUtjKiJnFr15t4/HcAM8mT9Ch5LkrGRleOtVdyZpLt8g/j5i3ACOnMf3Z5rDcfL iiq7INdBOgI/71nsBEu6Z5MgYz6Sl25gKDkuxIDG0ofdNi4iwwrqRyjTiw/7yhuCWQ MmFBlT7xL+u0pY0YjnAIZtb+4KcQLkfkHHNdMqtMYRmsHa7xiCrMF+OKFnpOtnAAl5 caEyJ2jxxqg2Q== From: Mark Brown Date: Sun, 01 Oct 2023 11:27:53 +0100 Subject: [PATCH 6/7] mfd: tps65912: Convert to use maple tree register cache MIME-Version: 1.0 Message-Id: <20231001-mfd-ti-maple-v1-6-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=907; i=broonie@kernel.org; h=from:subject:message-id; bh=V5NO9Eimgbw69L8Od1rfVYN0dRB+fO4oXX7TicgV984=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGUoEkhKdGHIabE6MfZ+vp9Br4OfWBGP4DEc0t MxMVC/VSbqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRlKBAAKCRAk1otyXVSH 0JSCB/wOtSYtQGqp0830iApAkdB5IPntP2Xl0u173+zjH5l3foV8hV2GhHxiWlkjxuzfse9OeLe sqHO6lrAwL2iJb3EjTt61iaVeMA9oAFRwr4irGZxLg7lCRJdzbyryu15FTkTVbPL0REAklsEbIf I7/uMZ2fxNKoTjywXNVkYtaK2nZkFsQeJLngKhvmtFXdBaDM2kx22CzN2CcZTAEAyDjdB33PVpZ 1k++Gp+Grdy/zxO1asjGJkNtgMsk1wXcX6sCtAR0bUZdKkwvYZGA1iv4nJRAyOZswoQ/AW6v7tr teT2M4+Bd0oW07P2/auzlSyaB/tX6eMZlk1Ho9qBZgG4uPTC 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/tps65912-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65912-core.c b/drivers/mfd/tps65912-core.c index 7d994b8a5965..2305ea60367a 100644 --- a/drivers/mfd/tps65912-core.c +++ b/drivers/mfd/tps65912-core.c @@ -81,7 +81,7 @@ static const struct regmap_access_table tps65912_volatile_table = { const struct regmap_config tps65912_regmap_config = { .reg_bits = 8, .val_bits = 8, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_table = &tps65912_volatile_table, }; EXPORT_SYMBOL_GPL(tps65912_regmap_config); From patchwork Sun Oct 1 10:27:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13405346 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 A1DA4E748ED for ; Sun, 1 Oct 2023 10:29:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234847AbjJAK3v (ORCPT ); Sun, 1 Oct 2023 06:29:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234794AbjJAK3r (ORCPT ); Sun, 1 Oct 2023 06:29:47 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C18DE0; Sun, 1 Oct 2023 03:29:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 203C1C433C9; Sun, 1 Oct 2023 10:29:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696156178; bh=81ol02msEB01/NcMPVgugti07kEIWXohMOsoa/ioGpY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=e9Sm3PMS6VQE6vdLBrv8d1Uf59Viz0tDVjf6eqMURdDpTgEnZ/WtBNLSQ9qGSqE3f pPBSiFXXS2gW7KWSTzVSX854IPlUsbSJCEz5M1QiWLlPK0zY9HYujA1fVBXn1kdBIQ e1lspOZccDHEdLXguJs8EgbKZ8n9XqLrmyQdwBh/iwwqiPc+n2s3gaJBLQaIyxEx4a z6Gy0B0wF0cz/d/gP4mb8DjpaWhGl4tt+lqXp9oVOoKAAVCDpxP9+VX7e0sIM+NOu7 a8oFPbIkAClzVsaVWvyhKo87J+dLt0BO5a26OWmEo2/lzPh4G0lekR0oyw4EY5+t2/ vRpyIRn4XG6LQ== From: Mark Brown Date: Sun, 01 Oct 2023 11:27:54 +0100 Subject: [PATCH 7/7] mfd: twl: Convert to use maple tree register cache MIME-Version: 1.0 Message-Id: <20231001-mfd-ti-maple-v1-7-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=827; i=broonie@kernel.org; h=from:subject:message-id; bh=81ol02msEB01/NcMPVgugti07kEIWXohMOsoa/ioGpY=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGUoFMIIpewrFmcaDtdsWcw4kILq4xQOQEEJcq qqWTgwxageJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRlKBQAKCRAk1otyXVSH 0I1TB/9XK+0FAoLrIqX2yf2A5OetRN4h4IXkuQHFOYzDlrhosx0/8s0CfJAT2vpe8ZfIAJpazRK kCffT4kP3+voI07IKlmRkcIp8YdzBHpl3WudYgDxoCIsAWSHtdPoYeuAmoSlLSsJb5fNv7Zczg5 LTgcFyXQJD+hlr/KfY97jZ1LkZlbr7eokbvGdd3CtyjEM80Nem/mCoELPKRquT+y2XgIKcli9KF LqkuWSVLTXpbXtqAGPqQZX5iYqLCICmjxA2EvVcK49EHEs5OQKFy/7cNZcLhcJXovKD8FkhQFw6 PKh5OPcqnAK1AREiVJNYuTmrWPdiL/lDVxu/a+xCexjFnBCt 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/twl-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index ce01a87f8dc3..1c1fefbeeb80 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -312,7 +312,7 @@ static const struct regmap_config twl4030_regmap_config[4] = { .reg_defaults = twl4030_49_defaults, .num_reg_defaults = ARRAY_SIZE(twl4030_49_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }, { /* Address 0x4a */