Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp738368rdb; Sun, 1 Oct 2023 03:31:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlUnrMPs2l4IiTToDtoad5kbS7HLnkbHazwEsi7VpZqHHgNwU2qnkgv1ZNK820DTO1wFlY X-Received: by 2002:a17:902:bd94:b0:1c6:183a:f4ec with SMTP id q20-20020a170902bd9400b001c6183af4ecmr8043938pls.17.1696156314569; Sun, 01 Oct 2023 03:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696156314; cv=none; d=google.com; s=arc-20160816; b=cFX4PMC8UY8EdGrm18idWdOiBVoRwBu6ZBjeoqv1wi9rSXTwsrpFTq66smrIHhPW2n UllG8VAYvn44sHl7kYGoA8/21VE3QS43SCyZKajFlzoFAlkuR4wHl9Rkk+iHIgRjucwn eD0ZUg/1ml6AVQQqofHVi8nnTh21+7GK/4ST0KbaYrqMg692fhf6ayF6Ewu9bync7888 N0VHXNXE5JG9JuOdPH0H6oUn4dXfUK5ofMPYqoKBd0pmWgIbOKpY/7oQSwhCaP9gJ7Zg g1qVnByi1MAg9Y/IGRs9ndzF6Le0e7UJpwB3XFs/F38IiG4O+oQJ8sxG4k8+zxT7WsFM ebKg== 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=sqVkVDhrtzee/fC5u39CS65yNA63Q2UrImN+5Ug+1SE=; fh=8EjtK7Pm/8YgjEotgtG97YYtOs+7TYKRruZoMHk9Buk=; b=SSxFtqXfcnUV97O0T7J7by7kqg/aeQqZFIhPVpQiNYvu28lmpk4bZBWucZKawmtLBd oiUywI/iDlVkfr2mnf7KWx6AtN6FBDhluD5YGSpneDHBKTZsVGFTkeHHKoLXliFeQ9Bd lutXoLLLXsoQWTZJWa6UphYmD9AqhVjqPgsydPS2Ylnqz+afGqgG1+kgwe+xEmUmzl2e 7oyfiIAeFR8iQo0Pr//g1WBXsYI2SQS0xj7ktlwcN2EVb956am1UmW90ICAdtI2Wbd43 Xd5AnogIucY6R7lxUpGaico6086FATnqsV/nTxE8q6RXQMeNyf7SbyVRcm8NUktLWA+x 67yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9Sm3PMS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d6-20020a170903230600b001c7345bc01csi9320420plh.450.2023.10.01.03.31.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 03:31:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9Sm3PMS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id D3BA38092488; Sun, 1 Oct 2023 03:30:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234840AbjJAK3v (ORCPT + 99 others); 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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 pete.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 (pete.vger.email [0.0.0.0]); Sun, 01 Oct 2023 03:30:35 -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/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 */ -- 2.39.2