Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp4003042rdh; Fri, 29 Sep 2023 08:28:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWyhUOMVdhltSGos0LsmJ4Qf/DMMm0XtCSTw6ULmqHrIedBNYJKY/MdhJiu23KrL8g2edd X-Received: by 2002:a17:902:e843:b0:1c7:21cc:2750 with SMTP id t3-20020a170902e84300b001c721cc2750mr6798499plg.28.1696001282298; Fri, 29 Sep 2023 08:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696001282; cv=none; d=google.com; s=arc-20160816; b=R6qRxQ0c1ao12TwJ+cpbbb/18uetEnmDPl9+j007FLE7o2wkc845CrryrUl0co9oOt PW2iVmyBiG7dXLs1BIYuLM1KDosesn6esFBNt+cL0T0luzjhCxcXSnY9AoUZhANasMP4 AeMyYd62UbM7Gu5FGrY0tdz3NaPhajVvLHMWIBaGAhwa/daIqPMhJWJFIbhbfNWcqUlm 27xwobQ8SdjEa6pH/hk4U9ewUpkyZeDvI4V+xb3mR6pxaP/vwy5w3VyUXqW21TuW1oAQ g1KU1fhAI/FF+vhGiy93bGEDaoesIReyTyoZozN9m1AOwfy6jKnTfskQBnoN90lZzyJH h9Kw== 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=autgmPvYlagKCYURhkJwuVMnUzLVhOMIJEAuHlaONUs=; fh=QW2kgLOLqwUg8ehOKpDFmjWt9ovs2pSJXM6sgn44CFM=; b=kTtpwY9VZaHp7DYeW6cWDlzMHRGFAnvBfou3x0T4W505kb8BYZNyako/X1RmX6IHxZ 1eRZ+UwcvDA76ITElCX2nmXtMDJa86pKej3uWvn8UmkhsdWZBNe1DoWxVAn40kxTjyyA bARTtCJr4gpAAJwxSRojbHLCbFAcKGRVJixcHQhsGx/xIiRe88PqgFf0Zb68ZZIPzI5s Jr+L52iG+F6Q3Ke/WilMyMWD6WGPZj3lfgC9Q1K/VWVfRUC+1Ycer9bLljsTiARPl93p JigDfFF2xWYnj3KcWuQF0eK4IW0fxchJUq5TSHVB/HxoNsBoz1uIKaYkW+a7sESVt/07 zQUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uShAj1BK; 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 p17-20020a170902e75100b001c32d285db8si22524821plf.308.2023.09.29.08.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 08:28:02 -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=uShAj1BK; 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 C013080845B2; Fri, 29 Sep 2023 07:26:40 -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 S233471AbjI2O03 (ORCPT + 99 others); Fri, 29 Sep 2023 10:26:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233435AbjI2O0Z (ORCPT ); Fri, 29 Sep 2023 10:26:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA0FC1A4; Fri, 29 Sep 2023 07:26:23 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 048A8C433CD; Fri, 29 Sep 2023 14:26:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695997583; bh=oBY3soSZF3SsFysTGE6a4Btp1eNwflyt47C1uRidxWE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=uShAj1BKI4qV+ZWq82jsq1cQ3GqJix/mYZCJafDp1fSn733PpFie2sjfDH9gGi6Af u5S6xbU0x9Bqhl3MpNq84tQrwxULfkSAzGKpp1gfpxjCquBC8nvpN/s97OMz5Ky3sc qLMwWK0IekDwJfgw6/3YyJow+4ODijM8uJ/nPdyAvYrqXgBC849+dVy8XvoaLmRdrH hIsrJ5j5F4McuplvgTD8Oiw5ooP/YHRy79w0JKHbofYfKIycLKMawpQSmDPRg13ay5 TJ6/g4yxjqRmFR9hV+SQaozK5LwGUvYOR+W1vffpDzwQ7b5mAvF38ZcKLb6S4+OKUR /Z6rC4iijz5jA== From: Mark Brown Date: Fri, 29 Sep 2023 16:26:07 +0200 Subject: [PATCH 3/4] clk: versaclock5: Convert to use maple tree register cache MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230929-clk-maple-versaclk-v1-3-24dd5b3d8689@kernel.org> References: <20230929-clk-maple-versaclk-v1-0-24dd5b3d8689@kernel.org> In-Reply-To: <20230929-clk-maple-versaclk-v1-0-24dd5b3d8689@kernel.org> To: Michael Turquette , Stephen Boyd , Luca Ceresoli , Alex Helms Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=905; i=broonie@kernel.org; h=from:subject:message-id; bh=oBY3soSZF3SsFysTGE6a4Btp1eNwflyt47C1uRidxWE=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlFt6GTzdwHoiUGD7uKWSyPtgDql6gcsZWsoEaK 1u8FSkHegSJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRbehgAKCRAk1otyXVSH 0Ki/B/0Yo7fANFWdcXWG2wo/wCMqLWi1fZD19xJsig5XJRajpdEqS72I3l2kQ8Lr+kz8MbQkLly i1n22pEkX4zwPz0WGB+F+hfQWsk84PzJiy3rx/mB2awh8JZYhsLAdnWcgChgWE8CEDUNPF6C0Tu ZEfUiW+1cOt6UKo4xHc6goqb/Jb7IhhGJc0dSd6Yi5Lt+gfL4wt8jbeTZqT71Uv+tkHPWHF+pLC q9cJ2Gu6lnJa/xMmrASw5RsbW4Ni7G9lCsnRq349B7rvcG+PD0UiFGQSyKeU4aK5IMzXd4k55i5 jPOpL13I4G5XynPAKT1cZ12fqhJfz6VEuIVL5Qs6qHledWgs X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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]); Fri, 29 Sep 2023 07:26:41 -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/clk/clk-versaclock5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c index 17cbb30d20ad..6d31cd54d7cf 100644 --- a/drivers/clk/clk-versaclock5.c +++ b/drivers/clk/clk-versaclock5.c @@ -217,7 +217,7 @@ static bool vc5_regmap_is_writeable(struct device *dev, unsigned int reg) static const struct regmap_config vc5_regmap_config = { .reg_bits = 8, .val_bits = 8, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .max_register = 0x76, .writeable_reg = vc5_regmap_is_writeable, }; -- 2.39.2