Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp738214rdb; Sun, 1 Oct 2023 03:31:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXBiKl9Zm559exarovC8a3dkah9td11fwQB/ugQ9sc7y/5/6eKzFya7QOLgt6yhypDP1qN X-Received: by 2002:a05:6870:a3d0:b0:1d6:53e6:7c8a with SMTP id h16-20020a056870a3d000b001d653e67c8amr10518565oak.14.1696156280408; Sun, 01 Oct 2023 03:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696156280; cv=none; d=google.com; s=arc-20160816; b=bIjgu3z1DapP8NbaUzsWQWEB2X+9alAlDdSgUgsgURqMJFANvXiaVvnh/uZBC1FxBM 8Aer/eZWtNml10kL+BgV3mKo2MBpPgvz7TJKzX09beGoxWAaBHbs8y0ZiIBUq6Kvkz8b kWcZ2ROXfIdbpRT5bOsh8ZXTJj8BgOplzdjSWzKHHy1ckt5ya21oITuEeRkgsmmI4InB FhHxjXKMEo2y+POtuDzPfFpH3QU8bceI806xtXGOllGDhS71EREWwCtMiob/wpbQxUiN FfUr6O9anlIZvdEEQJNogOUh6xIZFrqTH7GoeCFS4tzRv9N76KIF2gON1ayLgyZhRaJS 2p5Q== 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=exOncKnBWy92p7rlWamz6OwSSclGEEvbrjBbcie0ydg=; fh=8EjtK7Pm/8YgjEotgtG97YYtOs+7TYKRruZoMHk9Buk=; b=vUEcxNd2S5nEk7V+G8KM3oB7JHkl5f1QWI23d2a/JzddJMnLKGg75ZqnO3UI+isQBU k9UrYoCimhr2FpkG47YukrrFlYtgo0gOtXlLIwOcl0JWe/MnsjVhfO3yXdtR2MMda5DA xIm80i6Klwi6jSwynhGO947iEJOhOLbXDq5JawuxfVm7GqbcBUvKLp2J3rmAKSwIS15f kU6ZyNkpPTsXGXtXMnm4jdDUNM/XqC6WBPmcpuylWb9GBaeZ4eHELZyjKbJK2Ra9e88T vfrtA56Fe6b3dJoURPKg1jWDA/UwGJ4DcNemwiQGU3Be+NlVOq/XPakaIO8+dYTKHWMI wk/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OE6KWzpx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id h184-20020a636cc1000000b0057de1fae0ccsi21478721pgc.67.2023.10.01.03.31.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 03:31:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OE6KWzpx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 2D52280608B6; Sun, 1 Oct 2023 03:30:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234822AbjJAK3m (ORCPT + 99 others); Sun, 1 Oct 2023 06:29:42 -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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Sun, 01 Oct 2023 03:30:32 -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/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, -- 2.39.2