Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp563049rdb; Sat, 30 Sep 2023 16:48:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbueN1RoQMVaYZSPaNsUMXRsiA+lv0I9zP9tCtgR17lQn6tPNK4WyutEgZcWj8WAtLCXRn X-Received: by 2002:a17:90b:812:b0:271:c207:b285 with SMTP id bk18-20020a17090b081200b00271c207b285mr7733524pjb.9.1696117735923; Sat, 30 Sep 2023 16:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696117735; cv=none; d=google.com; s=arc-20160816; b=fp/xMTER1uPKMIWLAPjceTxERDWZD+Fs6Veqy8YGmct/sqklsnCNcE8dP9p9HMPPhR IzDXWB6AZoUeQilwxoq1jZgpfkFhJzmNS0eTi4Mq4Q2PIcZUNw9TpeAb4DeYD858qFtL DpZvwYwRLkYslO4NW3gSbHpgQuzDI0zBetG9mzV9FnEKWcZlFg5vFDd3n5J2MSC3Uypu h63aq2U69bH/RgJKqoZ5RRYSk5ONRfZgydFiyP9DgMybotQ4mRoKIFlc1kz3HbpTWSuG Pu1FGspARR1N/fkjgbtwYS2U5dLgd69lxC+GFcR9qISroKzCRM6WvhRN4AL549Lno2Jh jq6A== 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=Q+x75RoGshmeMyYEvBRsPJUFCL9hSO1OT0U79b4RjbQ=; fh=faa+7F/PLl5ja+SyK7TH73n4YkWB/QPndTAfBv9TG/I=; b=MOpHA206azQ6TEf4sAV8kh8MWuT3KvmjAneZFi/S4VirsS6flkW4yri4zD72dN9LMB WDh5mX2VcY5pghfj7Di9Nf5J8dIsGcd4Fk7dkkPgjUfOeAHlw5dp9cNVM/QYM8ewm5I8 GTecHwuH9VKZekY6biU3tdQ58Pt/wrbzh6N7Ko4u4kS3tZbbmi3tkInGxELT98emlfim hN+rGHR8UL4dxYkE9Bn68ESX/KsDIkahV+PCqu/9Wc6lDryAcy2aBXdjSHDZFR/Du7uA tZ7d97PrJKWJglc9/fd53ymTVgjOJ/HrbYXkKxSwROHTSREq9DUSfxYK9bqkMxSayxcY C49w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XgkNhNEb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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. [23.128.96.37]) by mx.google.com with ESMTPS id i16-20020a17090acf9000b0026d40e6a819si4417661pju.157.2023.09.30.16.48.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 16:48:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XgkNhNEb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 0629B80A73D6; Sat, 30 Sep 2023 16:47:26 -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 S234179AbjI3XrU (ORCPT + 99 others); Sat, 30 Sep 2023 19:47:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234165AbjI3XrS (ORCPT ); Sat, 30 Sep 2023 19:47:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17D58E3 for ; Sat, 30 Sep 2023 16:47:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5889AC433C7; Sat, 30 Sep 2023 23:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696117635; bh=aMzW1QSiY8RBcHGfZ8DGPquEYC27axc1gcOFIIgxAqA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XgkNhNEbjbyX0veAfaD4mTTkKHsDBNaSF9x0adY6Q46uXErAIml+li48Cvw12qLL7 OpSDaXjcXbKaYgAxAx23I/p4bXEBWB9Ik9uXgPwcSPhQG3XWoTqUiJkaxvXQ1mTmT/ K20GQV23oFxTBg6Ac83q/S2HonE/9l48GxXvzeVkq1myCOrrui8Hx7SrGlofkp7Qme ej7jn6ToMuYVOVsmYSsseUxXWpA3nbWAvmwA2Lnq8GZrYzJOB23q/R8hHKDuDXCI4L xEJ8wRdAv6bXBd4ZJlmEO1PkF4rzL18Hz5heKn+cAqIbtfon6Gvi1qAr8H2Aa421hE igV35sJTt9oZw== From: Mark Brown Date: Sun, 01 Oct 2023 00:47:06 +0100 Subject: [PATCH 2/3] mfd: max77686: 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-maxim-maple-v1-2-cdfeb48a4d15@kernel.org> References: <20231001-mfd-maxim-maple-v1-0-cdfeb48a4d15@kernel.org> In-Reply-To: <20231001-mfd-maxim-maple-v1-0-cdfeb48a4d15@kernel.org> To: Lee Jones , Chanwoo Choi , Krzysztof Kozlowski Cc: linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=867; i=broonie@kernel.org; h=from:subject:message-id; bh=aMzW1QSiY8RBcHGfZ8DGPquEYC27axc1gcOFIIgxAqA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGLN8pCkPwB4kw1gdR1PeqK5dGiX/Z2trkc2Ih xC5EfO0GWyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRizfAAKCRAk1otyXVSH 0CJWB/9sj1d8od2LVnZxm1ghiFCjBcN8L+eo1MVxnOUzoXRUH3yWAH4l44htq2xYAQeCNtbVuH5 m322mLKVNMDGXRT7ELQqh5atVBDZRUEEZHaa9CZl40BWHc8vu9s36MOb2nuAYtY5keDJJzLImlR zZAc4SqIYc0CkonK4rlawtAbW/kr/QUogOi0F/V4NXIa7fzNrZr9RFFw/A25FccSheUTKftBoBu Ced5eXwhPZvU1MhyTkgzjB5clYzCtHElIbMQNcW8J4qPMyPwqeXbjNWEKKl89D43G0693LytAUU sikoOJZF8MdYJGsGn87ZV28y9rHgJkEJ/tdOCVe2hF7RBvmF X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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]); Sat, 30 Sep 2023 16:47:26 -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/max77686.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c index 91c286c4571c..0118a444a68b 100644 --- a/drivers/mfd/max77686.c +++ b/drivers/mfd/max77686.c @@ -108,7 +108,7 @@ static const struct regmap_config max77802_regmap_config = { .precious_reg = max77802_is_precious_reg, .volatile_reg = max77802_is_volatile_reg, .name = "max77802-pmic", - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static const struct regmap_irq max77686_irqs[] = { -- 2.39.2