Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3970767rdh; Fri, 29 Sep 2023 07:40:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8TWjY00VfvG7Rw5QbbewrelWpg3R2dC5tKIPXGpnZUqNmbt81V4uiXF/x9KoYogv8grY+ X-Received: by 2002:a05:6a00:22c3:b0:68f:fa41:4e92 with SMTP id f3-20020a056a0022c300b0068ffa414e92mr4275745pfj.1.1695998399673; Fri, 29 Sep 2023 07:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695998399; cv=none; d=google.com; s=arc-20160816; b=tvaoFbGzUYzmPMjg7bB/UDe3nnjjb87nb7xvAcXvgGnEegaLUJOWPlIEj9GJHhzMNx 06YDlM8rG/tto7XZGHpPehDOpYmSGbT2W+yaQzuPq6fk7pcyQfRZa+KRNuD0L4WX+zUa 3ExOk3E18bkG6MIfYFc8LnGlIi3BISQ4lYvGZJwM4KJmPhA4zcYKz0zS13MCdX8Q0NJE +eZE+9wBK8GJIe8RE/U1D+CYUewMwlG9XEKqnpA1ok78PQ65swWYpcpn+kl6e30ySs0i n1Ze93k3u8YG9DUeJGRQRP4KLc+NkAxVAMmMw/zeXEG47JyFDovC+yn8TyHXVD6uFWLH 5xsg== 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=ViAUQS23bxqx0j2UkyoozT0eLvXmlJ5/8gfuFu8atFA=; fh=QW2kgLOLqwUg8ehOKpDFmjWt9ovs2pSJXM6sgn44CFM=; b=Ic3Q5a+3MvVkk2Q0w+bc/h+lLu2mgfMhdnGK0tj46qNoDLjsHvOH0lDuhJMs9M3B6A 83CriAocdLeDMdwVsuL5OfMDQMMzGIceyy8li+udC0qfctPRycJDbOfove7CFTDfpoOu t6yeQFaFO7ZT9PbTFnP5UL2EZCXWUlU6TtKk54LJJBksEUwPlZBCjucFGpZW8eJ4FbpY k0yb2srNV8jU0Sl55nrBlhkPW8jN6j3EhO6Yqh/estkUZVHU2PPStcXloZ3GePRzGVOi CodF6afnmosM5SAGuibbgPjC/TxVs/vzOMtuXZuH9cmjs9faqVh++hZ80Tflc0fYRh4M SDDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=joAt9QG+; 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 h18-20020a056a001a5200b0069343bdd523si6362345pfv.47.2023.09.29.07.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 07:39:59 -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=joAt9QG+; 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 2029280477B3; Fri, 29 Sep 2023 07:26:41 -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 S233444AbjI2O0c (ORCPT + 99 others); Fri, 29 Sep 2023 10:26:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233421AbjI2O0X (ORCPT ); Fri, 29 Sep 2023 10:26:23 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA9CC1A4; Fri, 29 Sep 2023 07:26:21 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43DB7C433CB; Fri, 29 Sep 2023 14:26:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695997581; bh=PHkW5LlzxtfJIOrjyeQ0VbxZvJkl5oNvN0r2Mt8D8ME=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=joAt9QG+o3YOlBmYoMVZWtJ+0RZIpPxHF+jYHtYkx26jj5BS4zPkUxaVMEhqhhqOt oK7PwNeezJYGqmwMuXg98d28FcoTpocEA9GZmlxgUQsbJqHselHh5/VMsXM3+sg+MI xa99C3BgxICmaIIOIzSVojnAD1fz/WZsbQyKwp/HoUYQwHbs/aPCSfxDGyJej2VeTT M6DBhEIOGknxGn3m3Ms/HGPB0g52YMoOIBl3kZmWkpBrkOC7o/vLb0+13XZFnwhoE8 wwh3gII+2Msbvx1k7bFBlMwnhq0t9ag83hIgUzUZnH3E7+PhsKRrsRRnewDq2hC9GJ mk187n2YNpRig== From: Mark Brown Date: Fri, 29 Sep 2023 16:26:06 +0200 Subject: [PATCH 2/4] clk: versaclock3: 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-2-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=837; i=broonie@kernel.org; h=from:subject:message-id; bh=PHkW5LlzxtfJIOrjyeQ0VbxZvJkl5oNvN0r2Mt8D8ME=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlFt6GcPViAAEpgq5/50KiAU465RMOR7kGCWMPj OfFdxpeJT6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRbehgAKCRAk1otyXVSH 0BMfCACD2noxzhF9tu6nOaX1jTUd6aNVy8hgdg0p22j9mYHk2Jf8zWn3t6IJ9SYqwnkc4Z3UmyL 9UzT2s6UBSXWwaUtV9C+liNEZ/EbQifMMEvOqQ0FLEtgYW0/EOYAJH/BXPTHS2MOspi/Uw+S3qV j6bm3GPFCSAj0G4sQw/B6SgdTGlgQdx+U0TBRGvnKHmRjzuzlNQYcGk3mFB+rIldayb+fxvyKAZ qzYtk/HnvBpOSxA4kXZUJ7M7lDxNFudNoZ2QBefQ7M/GUmtps57BAJFVsYqlu15DsIYNrYO/0jy Gzl3p8XALIibrs9DKXblSzWpK4X8o4AukFb30M4fPBlpgxTn 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 (snail.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-versaclock3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-versaclock3.c b/drivers/clk/clk-versaclock3.c index a5ab48ff242c..b4a89c083c11 100644 --- a/drivers/clk/clk-versaclock3.c +++ b/drivers/clk/clk-versaclock3.c @@ -589,7 +589,7 @@ static const struct clk_ops vc3_clk_mux_ops = { static const struct regmap_config vc3_regmap_config = { .reg_bits = 8, .val_bits = 8, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .max_register = 0x24, }; -- 2.39.2