Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp795385rwr; Thu, 27 Apr 2023 08:14:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wLQ1+2HOtv52NDfNITDTWFT48wjesLO20+6fQd8w4Tm/CwGBFDPYA8pc+aE4Bw4AYCo07 X-Received: by 2002:a05:6a00:414d:b0:5e4:f141:568b with SMTP id bv13-20020a056a00414d00b005e4f141568bmr2482683pfb.3.1682608455269; Thu, 27 Apr 2023 08:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682608455; cv=none; d=google.com; s=arc-20160816; b=dEy2OYsPLilwfvbAGSHHq4luk36xJ3vG6aFycdVooKb1rgMI+OwXzauQqNm58RowSr 0NeIbojXgxCWxYt5SZC30tPFV9YqZdey7wlih92rGqlrySMjy/xdS3w3cSksfM5hooiK TfZJ4usSfwGBtIwuuyBxIS1O9Z6Xaca9sXehqo3pIDWVXE9MI1fXaguzMcgMhCoqKSSx IlP/68nzGlwa0/FnRM2xy6/eiUoqntEgbKw+pBm0IVnEYfPHTgRJbIIgWJVh/vpBUf6J 8LMtv4py/QFRipT9SarJJ88kmrTnc8kF4xgURRDhqxjGOBmmGJDVb+qBl1HrZPPJWo46 UEWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/Hj78yuaV+p0pD/ytV2MgcyBlxBpYSHhlwBp1W63/vY=; b=VrQ4zMIvo3tCIaVGYWOqFMWwxlTHTM6uMyhoAV6Kgi9A4DT+zrNZw6j6DVqXSnsk4p W8CWG6twSDfQ2Upw9RcduFkzPdMWwoA2LGREDW9P8LX7RecNsmubO6Y0BODjcAKSRk8N WlMt99rplBTTy05Ta5BwzkzTG564tS4JwG69gUq0roFRgvmHTbpjzNpOFiPOvp5YDenq 1HA9J/XqiHpwp/MK22VNZBxvKPE4m0yMgLHE9RBxcTrqpOFRrZvV+qc4b4kA4K3zvLWN LRTOZn7T4gBX/teEV974P+wzWsdch3pQH3hpNpCB3IQRQTEp7MHP49A4/F3NhmIfBXyZ O7nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BV9ao6Or; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r15-20020aa79ecf000000b0063afd8a5b8dsi19207518pfq.186.2023.04.27.08.14.00; Thu, 27 Apr 2023 08:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BV9ao6Or; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244124AbjD0PLl (ORCPT + 99 others); Thu, 27 Apr 2023 11:11:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244118AbjD0PLk (ORCPT ); Thu, 27 Apr 2023 11:11:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D529235A5 for ; Thu, 27 Apr 2023 08:11:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6C95263CBE for ; Thu, 27 Apr 2023 15:11:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14243C433D2; Thu, 27 Apr 2023 15:11:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682608298; bh=Gf8nlpng7soqr5+IOxjYLYRRA4rKG/YU02EyHleTbyY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BV9ao6OrjxMppVoEoC3CCctoTYVGW62VOyw/PhZ6mtpWAC5RcdQXZKdvWCYNYDhkx jGN69oBmu+vaF+y7dsozQIUS97w4X+Dx/CIHexTEgcz8zINrM671gC/8eZ9JsBbKsC i+n07RYQhjqJWig+0tLNm6J8CYeiSY1dTyH9+fRjwsYoYb/CoSZZg+Zzkm9Lg2fovQ 8EZBePLkQt+Ez1ULH5K1e44WKzVsHtrJJfh0pybJfghGOcjm8nYHGLo7bIQ4RdfCRj VhU00Z8Z2k5XbHyW93P2w0MHlSYpfyb0a0+qGqzl9dKNxyc92JO04hGq1j1npuQENo uuRzGzE5dLM5g== Date: Thu, 27 Apr 2023 16:11:34 +0100 From: Lee Jones To: Mark Brown Cc: patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: wm831x: Use maple tree register cache Message-ID: <20230427151134.GW50521@google.com> References: <20230419-mfd-wm831x-maple-v1-1-e03e39d7bb0b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230419-mfd-wm831x-maple-v1-1-e03e39d7bb0b@kernel.org> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Tue, 25 Apr 2023, Mark Brown wrote: > regmap has introduced a maple tree based register cache which makes use of > this more advanced data structure which has been added to the kernel > recently. Maple trees are much flatter than rbtrees, meaning that they do > not grow to such depths when the register map is sparse which makes access > a bit more efficient. The maple tree cache type is still a bit of a work > in progress but should be effective for some devices already. > > The wm831x devices have a pretty sparse register map and being always on > devices never do cache syncs so don't hit the major current disadvantage > so they should be good candiates for using the maple tree cache. Update > to do so, there should be little if any visible difference at runtime. > > Signed-off-by: Mark Brown > --- > drivers/mfd/wm831x-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks -- Lee Jones [李琼斯]