Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp563057rdb; Sat, 30 Sep 2023 16:48:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IES9rGzd5i8122caS6+M5YURVud5FQIGjQYzytF/ML12TilXjSueWpZ4MrMyFdsFP6S6Md/ X-Received: by 2002:a05:622a:283:b0:418:111e:7910 with SMTP id z3-20020a05622a028300b00418111e7910mr9965737qtw.43.1696117737438; Sat, 30 Sep 2023 16:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696117737; cv=none; d=google.com; s=arc-20160816; b=lUguLy1dKCCnDZklGk4Ko9UEZii7FDpMAl8k77aVaerIW/fzEtHk6JRUOtOTAr8fZQ K3JrPaWYSjZtTCFL/fSyAoxoYJRb4Itr0DXP3qzCEgH5IQJZ5VpJ9dOudfScp75rrndF uZpKXOBVb1osNbs33Nt7iI0s5hEOf/9dWt+sZ6QhwlYnwN4wA1ErHT5bwesYANnpCJt3 5YA1lR4OmwevCNaDVoSYO7RW3IB7dHvgQ5SFAMzEtfdAGjE8n1MckTYWyL1KIJWEn0RJ YlvW/REhcZQmWEqmoGdKb/EM8VZ9dEuXdPPJy9ScO1CD8icx4CoLfP4x0S4H8rHZAAkg 5RXA== 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=wpDh+NTe01atixI/COW9cwLT5QE9yVic1GZIyNLyNDE=; fh=faa+7F/PLl5ja+SyK7TH73n4YkWB/QPndTAfBv9TG/I=; b=E4m+H1hh9oDTOFGkT9GmwO/E0SyrzWVvKMNgIZhsPrEUcwACL6gM7urN6xGxaYwb1u K25wirmiOqrkDQhcJfH8wiWqZtGdBQj/oh9iHva+y+8vFKkKxJceX26otQ5oKDyZ+olb phFgC3wf0YyQjwTUY7cP1aOIR2aMyO6HmCPZByc5f6pr0u5zQyRyRgoFAdkKUomRewG0 uzTYPQQVXyNrxlFEDSjwIrLH+FVYTq/0xS6Dvky2NSlMA0qyE/3ldk5i2tKkLcfQdgTw ZobeszXGcnFWL47vbD3NwxfdOHPESAYvoGqF2I8jQGIe8f7MGsXkAApyrcoMYv8QOnQx L7Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R9K3n3IY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s8-20020a170902ea0800b001c3a6902ff1si8323444plg.288.2023.09.30.16.48.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 16:48:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R9K3n3IY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 159608051B6C; Sat, 30 Sep 2023 16:47:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234208AbjI3Xr1 (ORCPT + 99 others); Sat, 30 Sep 2023 19:47:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234177AbjI3XrT (ORCPT ); Sat, 30 Sep 2023 19:47:19 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB2B2E3 for ; Sat, 30 Sep 2023 16:47:17 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F965C433C8; Sat, 30 Sep 2023 23:47:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696117637; bh=Zf4nouYLYQI8tNrjW24H+mOK6Dz/QfC2ed/ykA58U2o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=R9K3n3IYiHv3iGaeD7sC90ua9n0+6QbUnkxfXJKS0Lon6tYh9/NXYFgU5kQYqe9T2 aq4er02THXK++Cp3TTL6M0f1GIx+k5Pls0pRPuSFuU3xjeckoCkcqNZlhlFUqwf4rk b51M1Vh9ET7BYKCiQEtD3rgoSjfAmoV9cUpR1jbD+kM1i5qAj6+4Oc8PmxeDLA2ySn LgfMMs3dTL2z4ljR+h+Qe0AvBd9CIY5YM90CqUTwuMCYEllag0nTRQnhAauWLhEcnn zE5Q020qVKjq/B8Rtp88A9il11nW/0CJJsmHSd7ua7up1RZzfmEB+e7BTHcuE7fpug CptqROIMnkpSw== From: Mark Brown Date: Sun, 01 Oct 2023 00:47:07 +0100 Subject: [PATCH 3/3] mfd: max8907: 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-3-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=1271; i=broonie@kernel.org; h=from:subject:message-id; bh=Zf4nouYLYQI8tNrjW24H+mOK6Dz/QfC2ed/ykA58U2o=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGLN9ebrgW15PGuDGBqmimSB8too6np4V20t1R j02SOSAsCyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRizfQAKCRAk1otyXVSH 0Mm1B/4ifuZKMIFFwFo7U9mnpZaY+Ud9MuQUcc8jadnokVNdnzvaZ4UINPI/DjweRkkFIWwUP8E fifPlPFBFAlUHLbJSXPGF2cYcsQ7Bck77n41CfRlEnf/gyW8s2HAIbgU7xqQnA1qveOHG3g8UxW 3D6YfsULIVXtZ/qpwy6otRoGloTlpccZZ5GZnlmN5SPmRyiOw3P35Jdb8R45a678klKGceFSrQH xQf6bwc0KL/lGUZ8ADH1bfXTotUUFdwr35mTLv6Okjw6EBlc94pwRV8qRQSs6RP55KRkhhROYal UFUqzF3gaqAX34cebjzVmC/tnLJa+cp+BueKi+5Yr9pJaTqo 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 (snail.vger.email [0.0.0.0]); Sat, 30 Sep 2023 16:47:37 -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/max8907.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/max8907.c b/drivers/mfd/max8907.c index 8bbe7979db91..accf426234b6 100644 --- a/drivers/mfd/max8907.c +++ b/drivers/mfd/max8907.c @@ -63,7 +63,7 @@ static const struct regmap_config max8907_regmap_gen_config = { .precious_reg = max8907_gen_is_precious_reg, .writeable_reg = max8907_gen_is_writeable_reg, .max_register = MAX8907_REG_LDO20VOUT, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static bool max8907_rtc_is_volatile_reg(struct device *dev, unsigned int reg) @@ -108,7 +108,7 @@ static const struct regmap_config max8907_regmap_rtc_config = { .precious_reg = max8907_rtc_is_precious_reg, .writeable_reg = max8907_rtc_is_writeable_reg, .max_register = MAX8907_REG_MPL_CNTL, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static const struct regmap_irq max8907_chg_irqs[] = { -- 2.39.2