Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp563201rdb; Sat, 30 Sep 2023 16:49:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3Ix56IoWaeZHpVC1EnCBjuaY6ri5cwyivykg1nGMBDYg2tnnb1xrlPgN2D6SJ5QqdpdA4 X-Received: by 2002:a05:6e02:d52:b0:348:ac7f:69a2 with SMTP id h18-20020a056e020d5200b00348ac7f69a2mr8025660ilj.15.1696117776657; Sat, 30 Sep 2023 16:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696117776; cv=none; d=google.com; s=arc-20160816; b=SDSS0MZkAZrv8avHa6C/mZZbmHeKWB+IqP3vm2wuY/M491nVAEbNt8eBKtcc7LCIf8 yweZ4tOlSK+KOdnkbr4j74b4LYq+YiPh6ZoKceOcLbxuQZuIU1gpgHN+aIUFC6+XYDGV xjOtOMVlb4rRCZ6dD/4T3l8dBvLjfiNlvjdkrNPpcsomI2lL8I32ABkx75wygla2vH4w VWvp96tPoj26YtgoZMPYq/7p16fTicqBJRy6ZayadkWaMXkWp5PgTjjbnEJHGa8uvyhe Ui34n5bDzKAea7kEnebTHcNr7F0r2DZqDCKF6zSUROrt/HpG600tog0YkUSC3CBB1IMu SUUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=JChrCiRQfw8seD2mpMEgSs/zB+ebC8ZkWTV2J4Vbw1c=; fh=faa+7F/PLl5ja+SyK7TH73n4YkWB/QPndTAfBv9TG/I=; b=wgcCTkzfoUETp3yIbEnCcrgJB/w/aCKbSTLQbm15IU6dbWEj4A4ve4DmIn2B/DA/4I CEeb54WPSDGRULyhNw15zx4N1qd+2GpE1nNYUHbSj00Xkp72u5Qqc0EHs/guPrD9uR0w fECPV+TdkrMWv+Svrzs+S/CLzBiJbYNpd02qxBy/WBtPDhrWs3trr9/bc4gxP7Q5eYjM xrGbS7pItfUMAHfv2tqfca/G12EnURrhwcWYVQ24x1pqBVdKYKccoGh0lUYJRjgnTnH2 SDsRCty0+04S09pW8bjB2Y0ki6fVfILOt4jhYTZPHjbdQK0vr9jhBHQMt+AfReX1xGlF I8ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gSe91uYa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id g2-20020a056a0023c200b0068beee4922csi25944177pfc.23.2023.09.30.16.49.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 16:49:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gSe91uYa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id DB54D825A998; Sat, 30 Sep 2023 16:47:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234189AbjI3XrX (ORCPT + 99 others); Sat, 30 Sep 2023 19:47:23 -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: 7bit 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 30 Sep 2023 16:47:34 -0700 (PDT) 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_config = { .reg_bits = 8, .val_bits = 8, .max_register = MAX77620_REG_DVSSD4 + 1, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .rd_table = &max77620_readable_table, .wr_table = &max77620_writable_table, .volatile_table = &max77620_volatile_table, @@ -184,7 +184,7 @@ static const struct regmap_config max20024_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = MAX20024_REG_MAX_ADD + 1, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .rd_table = &max20024_readable_table, .wr_table = &max77620_writable_table, .volatile_table = &max77620_volatile_table, @@ -213,7 +213,7 @@ static const struct regmap_config max77663_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = MAX77620_REG_CID5 + 1, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .rd_table = &max77663_readable_table, .wr_table = &max77663_writable_table, .volatile_table = &max77620_volatile_table, -- 2.39.2