Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp4035097rdh; Fri, 29 Sep 2023 09:12:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLgEjBxmwGEB5RE3YAn0k+kTkxli0KFA7xFSGHTX8wnMoCVlJ266LKIcpj4OM7fVt8hovj X-Received: by 2002:a17:902:ecd2:b0:1c7:41ed:1bb with SMTP id a18-20020a170902ecd200b001c741ed01bbmr4109629plh.62.1696003947417; Fri, 29 Sep 2023 09:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696003947; cv=none; d=google.com; s=arc-20160816; b=iM4JrlaCTsFjScUsh2K7aA9oIl3xW6s6KQRxEVnRxshNvJapeJedox4EmT6sTX9FLI Mw6QbaDsJS31ASr3xB2VOmiZETXXZ/PidlWeDArw4RivLpEQ+UJT8h4Ut0zq6gEGXMVZ dpVh7WGkaK6r89yG+GioIkn3cB8QBvQxY2Wt3v1MGn1ri+sYVilk+2wFm9E/WDNtt2No g7Zq6vCGAhLT2DzXrJww5PpvGB3OEWFQ4zlXTk0UdBlKGspeLkFB9mnrD03ES5lkaWpZ 2U0bE/BaNnaLRjBJFFsK2adWPAREzncochHn5ydlW2dJmPYThes00vbSQcyCuCUrRf68 5YKw== 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=lFKzjqOo7z+N3yFJL8DhR1VNYD0BCwTr/rGmflwrDJA=; fh=9gJMX66QOJHVusGLKVxeYYd9M02PI/WHI+hxLGEr66Q=; b=FFUFJvUQCCwlSeSxHEzt67RsBy+rfWdVbQbnksmKdniSWPJd4P8neZG1EOpZ02DvQ8 Z803OPyXSY/rAH8JOJf6zuU5QNz+9VMxVy2iha0IKPJF9V+ifMQTpR+mNJygJdJUQaoh MmuR3YTYnZdly7U8HJOfFhNrEhJNeacurtv3qlL0Xmyrce6qZoZBT9jsprF7P5I9d+UD xgujuqOZts4o4mkcq4tiuRe9t2PgTP861LnReFES0n40ntzzTnyEwbgwSK08aQSzsrde p6+4l9slE03Kj4Y1y5a7jyPX9Xtzk/kQA7WwJz1PqLkyys0TK/Pnoyzq33QuL+Jm9xHC EPLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FiPxc1DX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id kv14-20020a17090328ce00b001b9e9b21249si4717357plb.649.2023.09.29.09.12.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 09:12:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FiPxc1DX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 1BE82826EBAB; Fri, 29 Sep 2023 08:24:37 -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 S233754AbjI2PYZ (ORCPT + 99 others); Fri, 29 Sep 2023 11:24:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233599AbjI2PYG (ORCPT ); Fri, 29 Sep 2023 11:24:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 945F3F9; Fri, 29 Sep 2023 08:24:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8530FC433CA; Fri, 29 Sep 2023 15:23:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696001041; bh=fBI8cLuaLqO/WvsGsTIjx9QYgkX5kcaru537d1XBIGk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=FiPxc1DX0kRzVLJPOSmQQjuSHZrL2XDKoN7J7hRBl7/wHiUj6DAw8vtQhZjezko4P HtD55GIn/TTg0IIuf6K2bcK4DUNgCsMQ3LwQz0uHdkBD7YH0dUuQBTVPpxwiDZ1P/M h5QP34tcBlDwqJ4mfs07a+NbQQu6j8G1W5H9d7nmRlOERGm3FdE2l+9hupiAvQMCch 2MuIrYgGT3sezwKag/hrvOpV0SQe+xPfnQmzMN1JiG2Xgwy08MDo6DsiyO5pnPPH7H iUY+RCPizJTg304Bx+3HUwqK7lEYm9Cwf+RdPVWolak76vYJVKXPl+/IcCtOaP+oyY rtszyJWKDg3Ag== From: Mark Brown Date: Fri, 29 Sep 2023 17:23:35 +0200 Subject: [PATCH 1/4] leds: lm3601x: 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-leds-maple-v1-1-ba5f9dcb1e75@kernel.org> References: <20230929-leds-maple-v1-0-ba5f9dcb1e75@kernel.org> In-Reply-To: <20230929-leds-maple-v1-0-ba5f9dcb1e75@kernel.org> To: Michael Turquette , Stephen Boyd , Pavel Machek , Lee Jones Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=919; i=broonie@kernel.org; h=from:subject:message-id; bh=fBI8cLuaLqO/WvsGsTIjx9QYgkX5kcaru537d1XBIGk=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlFuwKFGbKnC9uP/YHFPKf8riLwqgsVjOGwaB35 8Lf1/EvqFyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRbsCgAKCRAk1otyXVSH 0KTYB/wMYjyI8KbJo9B34uzHVBi1v7vJfYnihs1e2cMUWK6QE9Hs5behqyelt/absOQyVA/oHVz EEAS7mabv94Fg5HGeMQJqg9y/TDUFqCyHH9HZa58AA2TLUQP8u1fR4/UqMK7e5LS92K3B9FQmqM b8s4r72v4r1WX443CgR15cmygPmxcZmBI4VIe25CD2ZEsvYvv/3Biai+vhF5jL/cQujJGlq/P7Q AOafnd3esLHvmMpRh5qwm1pby3xkjPylOHnpWtTMXaB5US6QWYSr+Dz3fVWvuAhLvQb3Ln4S3UB bZEr0UWow58Up6wNGwecsZQJh7PpYpkX4EvAOA1UXXEHEC9g 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 (howler.vger.email [0.0.0.0]); Fri, 29 Sep 2023 08:24:37 -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/leds/flash/leds-lm3601x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/flash/leds-lm3601x.c b/drivers/leds/flash/leds-lm3601x.c index b6c524facf49..8191be0ef0c6 100644 --- a/drivers/leds/flash/leds-lm3601x.c +++ b/drivers/leds/flash/leds-lm3601x.c @@ -123,7 +123,7 @@ static const struct regmap_config lm3601x_regmap = { .max_register = LM3601X_DEV_ID_REG, .reg_defaults = lm3601x_regmap_defs, .num_reg_defaults = ARRAY_SIZE(lm3601x_regmap_defs), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = lm3601x_volatile_reg, }; -- 2.39.2