From nobody Thu Jan 8 06:29:14 2026 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 0DB81E748E6 for ; Sat, 30 Sep 2023 23:47:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234202AbjI3XrZ (ORCPT ); Sat, 30 Sep 2023 19:47:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234171AbjI3XrS (ORCPT ); Sat, 30 Sep 2023 19:47:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ADEFAC for ; Sat, 30 Sep 2023 16:47:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5B65C433C9; Sat, 30 Sep 2023 23:47:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696117633; bh=D9GV1hfzFmmN89nebQOtTR7Dgz5pNeaIURrzo6kciCw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=gSe91uYa5exoYVwZh590gzb3j1thFMwTho+iEBt7EvK5y4OAbloM201okxBQWw3Ae SKy5P7oXsLoycX0uRhNBLKK10RfvFRB6Lzgf16XFOgiSiokzVxfjw5mnu/JFG5G0/y aMnfwk6aCzT4lQYfi4eKNUtYWLQeYHfP3KktfzGjWiAuzssBIhU4PTE9HXEVbEEtxE 8nsu5WRHv4thW9qtR+aG+R8Ihqh1vO3Rn4P1lu6KtUECzvxcrGYhtDwuOjRSHVcQM2 7ZPFCVu2tVMlI3XfqhzD8tiHMyQH8G1FP4Q40uVbNfuPWL5GGSwJA60pkUlkLdNUcP l8B1A/QFx7PnA== From: Mark Brown Date: Sun, 01 Oct 2023 00:47:05 +0100 Subject: [PATCH 1/3] mfd: max77620: Convert to use maple tree register cache MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231001-mfd-maxim-maple-v1-1-cdfeb48a4d15@kernel.org> References: <20231001-mfd-maxim-maple-v1-0-cdfeb48a4d15@kernel.org> In-Reply-To: <20231001-mfd-maxim-maple-v1-0-cdfeb48a4d15@kernel.org> To: Lee Jones , Chanwoo Choi , Krzysztof Kozlowski Cc: linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=1618; i=broonie@kernel.org; h=from:subject:message-id; bh=D9GV1hfzFmmN89nebQOtTR7Dgz5pNeaIURrzo6kciCw=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGLN7zrDDT/QBAst0EkVTj921GiukbDZT+VYFQ SQ8HhvLpb+JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRizewAKCRAk1otyXVSH 0I4EB/0SpNvqu4iQWGekk4++F+2dBqh8OQG6fJVZXM73e52vg2ZMjLigZRkUJWcgyplYsU0oMDz JV9YXrzMV4b97qi1m+opVluJvPox/KokiBCeew/6b+LRAZcgbXpTi03WRmHWST5iyecZ1gdC5Zz VnDTZQ07ZUviAa6M/i2duysw55l/pSkQ5/PYetReXt+l0B8kAcnvD54NVDmuZeejK/v9uVZn+6r FoSfbhk64q5JV1lOEwhMfxiUcMccWFgGwDwrJUiZQsKh/AnvcvlGXUDFR4JGGq6pqdYl+ISb+J7 JNow0R0n8TfvsN+V0IWHrF1clVw4d2t2nhN0sXKLFgu9LWDY X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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/max77620.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c index e63e8e47d908..74ef3f6d576c 100644 --- a/drivers/mfd/max77620.c +++ b/drivers/mfd/max77620.c @@ -172,7 +172,7 @@ static const struct regmap_config max77620_regmap_confi= g =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D MAX77620_REG_DVSSD4 + 1, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .rd_table =3D &max77620_readable_table, .wr_table =3D &max77620_writable_table, .volatile_table =3D &max77620_volatile_table, @@ -184,7 +184,7 @@ static const struct regmap_config max20024_regmap_confi= g =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D MAX20024_REG_MAX_ADD + 1, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .rd_table =3D &max20024_readable_table, .wr_table =3D &max77620_writable_table, .volatile_table =3D &max77620_volatile_table, @@ -213,7 +213,7 @@ static const struct regmap_config max77663_regmap_confi= g =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D MAX77620_REG_CID5 + 1, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .rd_table =3D &max77663_readable_table, .wr_table =3D &max77663_writable_table, .volatile_table =3D &max77620_volatile_table, --=20 2.39.2