Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2579108rdb; Tue, 12 Sep 2023 06:21:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaHiMbfcsQFB9K5SOBvHK525SFw0eByqzK0C1OTcxMhTI73bSpknRdYL1x+b7bFD2QNFVf X-Received: by 2002:a05:6870:ad08:b0:1d5:8fa3:2ca6 with SMTP id nt8-20020a056870ad0800b001d58fa32ca6mr10539907oab.9.1694524902666; Tue, 12 Sep 2023 06:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694524902; cv=none; d=google.com; s=arc-20160816; b=At28s1T6syFbyG10TcMsVQ0+aO90thEBNOPcGZ4TZnnrjASCYZSRt/aV6+N/NeK6jk gJTVZX2mbK6sMspw0SZ/OK8aq528cTNX1cS5gIMkeCp7qThC1DLZ+Ees3RGtY0HTx8FW VdAaNIhK3lsEWc0doDwqrwHdAnPPS6vAJaVbKk7UqjjU7HqNQ/0rmqWnvEZ7X9vsXwZz gyD0+YCesaCQd6OfHZmZOnxhST91LUbBqPpEYftOuvZA0MXfTYjK5NtZeNWIZ6X58VWA fphnW2xohD4jo0Kxn1RV9dzsWUn9nM15FkG4uJIOVrgSEGXpHELSsnfmLquPMiIANLCE Beog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=vP/K9Hnh+virScVxoOZkH9yG4yVc1rUDOfe52mJvVDM=; fh=lKkdW8rBBI54TqBsREWlsukQeVWUhCMWfelEWLRXel8=; b=Whu21ZGCFowdiZNFBMLfXoUWXVB+abY2/uFjgEtmu5blu8hwOm7M9EVXsCYRNVHd8q Tlp0pskqmiA3npSx3kiPFteW8P96UKRCUyftwNAXZoKogLuW/hmqefHxdkT2WeckiSuu F7EOM36YmBCsuTtvQu/V1Dmkhc2itE3vfIG9F0zeExjv6FJ1bA9vZSpMDV0scfEAr1Nf GRsD+ttaVXwINGTyuU8VnlDB0QRmUeuTx1UZcml/cbBb1gTyr4xKJnSawBPiKpYIE9fM p/+7CsVLNF9u07fyTZP3Sm2bGI4vNiNsJMPTGdI4rJkzV5I3eoT2eOQAexUKWM31Ej9p aBbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u6src8Wb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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. [23.128.96.32]) by mx.google.com with ESMTPS id r19-20020a63d913000000b0056569ee3ae6si7827018pgg.798.2023.09.12.06.21.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 06:21:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u6src8Wb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 E37F78191644; Tue, 12 Sep 2023 04:37:45 -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 S234758AbjILLh1 (ORCPT + 99 others); Tue, 12 Sep 2023 07:37:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234996AbjILLgz (ORCPT ); Tue, 12 Sep 2023 07:36:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C75E98 for ; Tue, 12 Sep 2023 04:36:51 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FDA6C433C7; Tue, 12 Sep 2023 11:36:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694518611; bh=hWdIAXbpcAzILmAOadWsIIoXYCILRlwaxE0WMmyIs4k=; h=From:Date:Subject:To:Cc:From; b=u6src8WbsPa1dN03XNXRc8ehUQ97ADMKfNWWgG8fpchbR7UW202af166xj5k3ujAG ikNo8B0Ho79V/uHrSPRZcjabMcVa9kvuftDNPP96pZG++b7BC9b0pi0Z1RKuNKuOqi iQFhTr2l4vB7/sHOkqm8CeNeP0Rb0pXeS/5sY8109mJpTPjG5yGBdgbett4XOJdoqN vTEsW0xXZSYrZERADcBTrO8BqAdCe99ax4s+dYQNciNhZqTm8/oErrvy1nyGlUflML 1pjViS/utwWB53hKMgzDEfYgMFjlv8ZfD8pqMjFHy9RNlb16FtvgQHE8VvStu3ThGt k1e0o+2rcX2ng== From: Mark Brown Date: Tue, 12 Sep 2023 12:36:46 +0100 Subject: [PATCH v2] mfd: wcd934x: Update to use maple tree register cache MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230912-mfd-wcd934x-maple-v2-1-292a154113e3@kernel.org> X-B4-Tracking: v=1; b=H4sIAE1NAGUC/22Nyw6CMBBFf4V07ZjSAlVX/odh0ccAjVLIlCCG8 O8W3Lo89+bkrCwieYzslq2McPbRDyGBOGXMdjq0CN4lZoILySshoW8cvK27ymKBXo8vhEspSlm iNMJWLHlGRwRDOthuN3sdJ6T9GAkbvxyxR52483Ea6HO053xffxmViz+ZOYccuFPa6MJwrtT9i RTwdR6oZfW2bV9NLRuZzAAAAA== To: Lee Jones Cc: Srinivas Kandagatla , linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1406; i=broonie@kernel.org; h=from:subject:message-id; bh=hWdIAXbpcAzILmAOadWsIIoXYCILRlwaxE0WMmyIs4k=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlAE1QacasghZtHKjysimim3SOUAZ7QKui6Y0cG fM719ze4EKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZQBNUAAKCRAk1otyXVSH 0JshB/9AsfhQLIMWztpfzgPjJyS2QSJylJCkG7LOcPDE1tfuRPIdjq491DxqeiesUlrK+psSh9Y H7tBFNXZJB/R4O3INBcS6kCTGxRoGz08Tjpoui319GIUgVL/hQRBN55fr5JGtflSD6xenZ+4rpn +TEyfoXdpOxakFFt/+v1CGeoXKtJJXuoEnaT0jg8Uy9H57FBOMy1C1/1+kDqUjZxA8Z/aIBRhWY QEU3sNyWHwcLgPn1k++ld1nJYjrGW0bfewFn9jvH74gdU49mgBxS5yWaoe5tpugDdqE6ilUS6uD BDuJP3gfVYGLe29SjayoR8PcOuHufFrkVymBlU4HvtHDdb0s X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB 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]); Tue, 12 Sep 2023 04:37:46 -0700 (PDT) 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 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. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the wcd934x to use the more modern data structure. Signed-off-by: Mark Brown --- Signed-off-by: Mark --- Changes in v2: - Rebase onto v6.6-rc1. - Link to v1: https://lore.kernel.org/r/20230712-mfd-wcd934x-maple-v1-1-0d7aba4b0077@kernel.org --- drivers/mfd/wcd934x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/wcd934x.c b/drivers/mfd/wcd934x.c index 6b942d5270c1..7b9873b72c37 100644 --- a/drivers/mfd/wcd934x.c +++ b/drivers/mfd/wcd934x.c @@ -112,7 +112,7 @@ static const struct regmap_range_cfg wcd934x_ranges[] = { static struct regmap_config wcd934x_regmap_config = { .reg_bits = 16, .val_bits = 8, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .max_register = 0xffff, .can_multi_write = true, .ranges = wcd934x_ranges, --- base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d change-id: 20230623-mfd-wcd934x-maple-852535e3b2c6 Best regards, -- Mark Brown