Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp4009570rdh; Fri, 29 Sep 2023 08:37:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGaMwfH6cfeUq4hqd5wXPLD6GZLVEFMpTOEATBBZrtmwH2AYWEpVweqvCIDFjYMjSPWPrEp X-Received: by 2002:a05:6a21:790a:b0:13a:59b1:c884 with SMTP id bg10-20020a056a21790a00b0013a59b1c884mr5073561pzc.40.1696001873779; Fri, 29 Sep 2023 08:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696001873; cv=none; d=google.com; s=arc-20160816; b=r9YQDu6o4Yy6OwLDE7kcNcOZu97FtLgFfv1xRGcbBOCTJR2hP1goehipYBCUpfWDBX JoZ36DstI4rw+juc21GomDKr8DM3Y3OVzvXjdut8q2qOTMVV3Z6+XKQvWPQVu8rY8f8h UlCzGG+HHo9S+FW9BO3ioW5IqVn6oj+iehyIHljouvnU2fhgxeihlnL92cgzRFEBAqnH lpWymxEhRJoZPnqUWYn0+6QONUOaFm4gqdBXG6N8iYCL3+lPbFcEariSToOQ/8PhBUOV rfVhR4A1J/NaJWsZ2pkFaW30sjPA+wMQXSOCF+hcPVozYrqKv7BNAOFxUPjWCoSXr0R1 Y+HQ== 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=bH4s0016rZ0a5cP0584oyXiUwTtY9R2gQq+wAil53Pc=; fh=9gJMX66QOJHVusGLKVxeYYd9M02PI/WHI+hxLGEr66Q=; b=WrVpZUzf+M4jbiYc5IdCiYbNJ3/IkzyJBZ8xng8kgZmE5R+DI69ud0BHEszVdEq8Wr /h9N5jKvPWlTfjd9jjVAQng7DMTj6+tC6NIsTH0stcAGP2GjiISh7vg8HJT3dKuGjCJ4 P2fBRt5eM2Svm47lYnooffRSlU0TfEepgd+ejH58//d7su4qvMxJLNMdnrLVQnBlBATJ D3Tga1whK6xscABUp639QGMW+ZIiYYueuGqhCUn3/r+/IKZTkp7g4vo11RBksSzLFE+X 18Lq/AEQc/SKfWjc9jjMe69NEmudhmMmQnFnrbz8iA0jAESCRxVs98ntoJeCaCFniWKr VtrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nezdD6wE; 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 l63-20020a638842000000b00578a9529cfasi21057032pgd.87.2023.09.29.08.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 08:37:53 -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=nezdD6wE; 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 8AFA1812D200; Fri, 29 Sep 2023 08:24: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 S233631AbjI2PYO (ORCPT + 99 others); Fri, 29 Sep 2023 11:24:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233670AbjI2PYI (ORCPT ); Fri, 29 Sep 2023 11:24:08 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FBB9CCE; Fri, 29 Sep 2023 08:24:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CBADC433CA; Fri, 29 Sep 2023 15:24:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696001044; bh=anSMO0wLoARN9dIrEDCmjrHsEo1QptfdT0Azmz+4gp4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=nezdD6wE91NjhW3T8Dsrdhd0FPS/xY+sQRBNP6nSHF2wJ1fi4azcBZLYRx06vc+PS 4qnwYKwkETkZ7Nvm6Z5rfVU65YSXwicWnTmMVh4SSTyOJXiBguRcoyPH1w5vAF6vZz +OpHaJ02OLsmcdZ/Wm83k9tcn3Cc76yjC1i7WL7IHAxN3gK4gJCchEsMIVbXiuDdyC 3jv1c7JIS1FzHZ+lAbJ4OoLoeCGKgHGw9W3H8N1RsjEEWK+6zh+jV4aMEkkgqHAjH7 mNEv6YhsqSoh7bx7nchXDiMG6Lc2X94EoMM4iWik9ZnEo+FBdU/bD7fT0pOdQjlQ70 arsJXGLCW82uw== From: Mark Brown Date: Fri, 29 Sep 2023 17:23:37 +0200 Subject: [PATCH 3/4] leds: lm392x: 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-3-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=908; i=broonie@kernel.org; h=from:subject:message-id; bh=anSMO0wLoARN9dIrEDCmjrHsEo1QptfdT0Azmz+4gp4=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlFuwLY+XvWFRdzu+evIvN/Z81F88orD48TxyHx cxGL2FMZs6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRbsCwAKCRAk1otyXVSH 0GXJB/9dAfKx0BSdL/xm5/nidS0HiZpwmdt+/wwnYvyh/F1zXvtULOvLQR5cWxUKrh1J/5bTivE lLlJ0Y+EW4VA++GP9ePBkl0Kq6LN+f+m1TOrXCbI4X3cV0zDfhfpygMyoDa8eJ73TREPsMPGBSO QTXgxXCLyfbgreX0XfqX1mZCEt9jzE0GlmbCpzql0pEGlL1rjIi+sjH4IwrMblOL89EcPqWeZQP q690jtCapjhxSlDFfif5tmimk56h+fVT8N8Exdn5q9pOAw6d1UqKUg6mjZVYIWmo6StryAjUiTQ wvCysJZRi1RcZU6D3UdRxNP3sHVXFRLk4T8odUODgjXsEBrr 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]); Fri, 29 Sep 2023 08:24: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/leds/leds-lm3692x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-lm3692x.c b/drivers/leds/leds-lm3692x.c index f8ad61e47a19..c319ff4d70b2 100644 --- a/drivers/leds/leds-lm3692x.c +++ b/drivers/leds/leds-lm3692x.c @@ -139,7 +139,7 @@ static const struct regmap_config lm3692x_regmap_config = { .max_register = LM3692X_FAULT_FLAGS, .reg_defaults = lm3692x_reg_defs, .num_reg_defaults = ARRAY_SIZE(lm3692x_reg_defs), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int lm3692x_fault_check(struct lm3692x_led *led) -- 2.39.2