Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp562751rdb; Sat, 30 Sep 2023 16:47:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGh0VTRB3ov5CzvvEqZtwVS0GQt9Rx/lu2kIQspfAdq5D3Ii6eOSjrArV+9jRje79Td/jkn X-Received: by 2002:a05:6808:14c5:b0:3ae:50f7:e3a4 with SMTP id f5-20020a05680814c500b003ae50f7e3a4mr10795749oiw.22.1696117660501; Sat, 30 Sep 2023 16:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696117660; cv=none; d=google.com; s=arc-20160816; b=yWD6esYq7rQxAZAQWs8F23A7rff5221TPbM4CFZIY7Cn8+5+1oQzhd4yA+3MDuJYuj sheTqSXQmTTe/VIv2BNwAq9Wt22WA3TplWr7/WUZ9XE4O7ivyreO6eOZ83o22Fa1FJBq an5AA0AYuiUqEhEGKGXa8p7yFbAKzrmxkDn2Q15ZGwwmMhdkG5iLAfKANODtgXW5CS+7 XmCQ8VPQC/mrGCXiUXqHEWpsLHIfhLIFn7myGiZNQuCxGNTnxB1IWlS4vmfUXwOeUevI XSjr4hHLJs2J7bSxUrV/trxZiteDqSzJRZBcMCypdLjrhT673LQaL464Zk/rjj5sRTSK KRng== 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=R/YeJVJWp3qQlH6v9EL4REQWnYgLGEvX/LY/nrfDAHE=; fh=gnXFT/DYaxI3maz1gWqkVdyfF6YzkW2Qs2+7F6Ii1UU=; b=lTvDWz71SE9LexZOuW/lVq3JQiVJqLjt81xGKe2K19hJ9BwTR7CPPi1VG/j+HE+Tma vt7ho2UZIuoOnniYXrFr1K2fk+7hd+9vmssP+PiB/JHgVjRSm7OZlWW2aSTl3pX24pXQ CN1KisgzJ+alZsPbwlo+5plJ5oA7zvU73baZa05ovHoXpspptP+Q4tr6owVa4NZR+pIY 4MiXVL9BfIEMHfvWwBHjMpsROssxXRuHC9fSVnrmj8wHZ08E7I7FZdQtjgqsR+9+6OBu rGEiTEjRlb+LbokOTXEPNfwuolsdUei+C7ceyDAh7x2X4mKwmsivTDwvjoLK99v4QpMb J+mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MlCxd+y7; 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 q5-20020a170902a3c500b001b89613687bsi23671481plb.439.2023.09.30.16.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 16:47:40 -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=MlCxd+y7; 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 5E4A0807C67F; Sat, 30 Sep 2023 16:44:39 -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 S234147AbjI3Xoh (ORCPT + 99 others); Sat, 30 Sep 2023 19:44:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234101AbjI3Xoh (ORCPT ); Sat, 30 Sep 2023 19:44:37 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF816FD for ; Sat, 30 Sep 2023 16:44:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABB7EC433C8; Sat, 30 Sep 2023 23:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696117469; bh=WdTnvHIfE9Z+Cf7GFtMdGxS7MP/BA2t1PAoWsH1zAYg=; h=From:Date:Subject:To:Cc:From; b=MlCxd+y7kh2Bn2VFvMQ1aF/BrB3BLwISITRpYnAZpOiEbJh/1zU0EP+cnlbMbpP/o t2cmyDOT/90RWBBTNOl6AbwhiZWUztf5Llj/B63X/SKU6abyssNr5nWzyLrIavmZSi 0QU2f25FgzM+GeFVQhZjbv3vEzjZF81WsYdkR5wY8iypZ+HqT7O44A3fof05tjW4BN zlIDp9oyI8yWgiRVgkkmdtBdFOBgThGFfu5U+WE4jgxvVCWITKx5FQsy4v55tWy2Rp Xw7FOa3KNPYOlIp1PN0cIdhTk8DUCfziOPh49PzfBzWEJQwk8YXG8jTYVbHJYo5kxC jEpLgt9uZSIAg== From: Mark Brown Date: Sun, 01 Oct 2023 00:44:22 +0100 Subject: [PATCH] mfd: rk8xx: 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-rk88x-maple-v1-1-90434cfb2f90@kernel.org> X-B4-Tracking: v=1; b=H4sIANWyGGUC/x3MSwqAMAwA0auUrA1oitp4FXEhGjX4Ky2IIN7d4 vItZh6IElQiNOaBIJdGPY+EIjMwLP0xC+qYDJSTzZkY92nEsDp34977TbCyNHDJtZBjSJUPMun 9H9vufT8qJRtmYQAAAA== To: Lee Jones Cc: linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=1509; i=broonie@kernel.org; h=from:subject:message-id; bh=WdTnvHIfE9Z+Cf7GFtMdGxS7MP/BA2t1PAoWsH1zAYg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlGLLbvWdqGA3ROxRyd6mIFL3vECSnHvoc9rU+2 VqKsXi7j3yJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRiy2wAKCRAk1otyXVSH 0BZRB/0Z3ddSRqV2F72nIRJwA+HAce3Ol1fpb2ryVwo+fYoVKaq8e9GqrhZy0rllcU71dKwRXvA NcDIIRsW5dgRBAzkFt9GV1U0PMHZq7ql1bBPC33BCVgysnM91rK8e37TOJywfQUt9KMnF5fU+Q6 RFlIR4yc3jZY/IJy+GY5dondBS61Uq97LxBDnNvCN4GYdXiCENgDjh8Z991iZEMef2gXlIOVP5n pYxGw6w+wg2eBW61x5v8Wi/UbArt8V2kJiw+xFtNqIWlg8iEzcUMNMxWFX/dsSxIEbQg91SwWWu j4oH4o9XgC+NuKVxdVQMdljHqW/YqaBsymNiArxQMMyFI2p9 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:44:39 -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/rk8xx-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/rk8xx-i2c.c b/drivers/mfd/rk8xx-i2c.c index 1a98feea97e2..75b5cf09d5a0 100644 --- a/drivers/mfd/rk8xx-i2c.c +++ b/drivers/mfd/rk8xx-i2c.c @@ -80,7 +80,7 @@ static const struct regmap_config rk818_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = RK818_USB_CTRL_REG, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = rk808_is_volatile_reg, }; @@ -88,7 +88,7 @@ static const struct regmap_config rk805_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = RK805_OFF_SOURCE_REG, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = rk808_is_volatile_reg, }; @@ -96,7 +96,7 @@ static const struct regmap_config rk808_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = RK808_IO_POL_REG, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = rk808_is_volatile_reg, }; --- base-commit: 6465e260f48790807eef06b583b38ca9789b6072 change-id: 20230929-mfd-rk88x-maple-632c9597e289 Best regards, -- Mark Brown