Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp389109rwr; Thu, 27 Apr 2023 02:50:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ep7iOtFyjX4dacKu52oj4Y8AD+5Zt96slUFqjIXdwozMjUujpQOxad5JnUSLjdAdmvkTr X-Received: by 2002:a05:6a20:8e19:b0:f5:7e36:486d with SMTP id y25-20020a056a208e1900b000f57e36486dmr1075249pzj.3.1682589037546; Thu, 27 Apr 2023 02:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682589037; cv=none; d=google.com; s=arc-20160816; b=fECixncROz+igCjYtTgu5+NaXRZKfet7dbRR7qflm8Rv02P+8ckyTEtPQC86kGdVX1 mlZkLLi7UbhPmWWohYeuA88ZYZrqRyWt32+z1zfdET6WCmf3Aq0gXT78MyYMTDV55rXn t0p0vuTeRSJ5py189upGweXe8lRwFlXrZpddwlu27DiJFJ7rHqchyo+cWLd0mkNW7+OE 1HJsy0Wiul5yAMbv308mj2FtGVhK/jkfsb55C77YHlhx0iJirfsrccgAY5jmTA7x2xFk FevwEiX8y3JAVMej2IsvpWtVl79I76LdvyrCe77Bgmt9lyX577MCSM0868vP+NONTIHe L3xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kGUJjqL1+qg8otYMpB2IAWWgUB5E/UIRkLDwAapWdsQ=; b=DNYN6FluGD5KVAYfwDbNWZv7j/ehxPXsv6ohd5icdf1XzJHWIHkR45c678m1KPOt87 8kD73Y9WqAauShzA9M46VBpYfYhjnF6Wi4oGC/ffNKMh8yYe4ajec5mGIKkQrnnEvzna 9zup8p1QYy/UntMR9OguAjiX6C5r68UpfVrsPj34lqEf53vdjtPY4ZCGHJY8+j6O4y7r 5pE5eHYbhq2orgmkV5RiNG5WoDLBTwMwzN57CHjj5qUbMAw8yqJqdhYxymEUWOoklCPg 7C4Z0XHhG8AkejIt6KBEMjFWJ7Sd/CLBpv+bnb88+4Nj7Aiv6cfflPxEWBw3VrmxS8Ld mahA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=ogx9IDv8; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020aa79836000000b0063b54679d0dsi18976206pfl.44.2023.04.27.02.50.24; Thu, 27 Apr 2023 02:50:37 -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=@cirrus.com header.s=PODMain02222019 header.b=ogx9IDv8; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243152AbjD0JrQ (ORCPT + 99 others); Thu, 27 Apr 2023 05:47:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243348AbjD0JrL (ORCPT ); Thu, 27 Apr 2023 05:47:11 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F030E40F5 for ; Thu, 27 Apr 2023 02:47:05 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33R5FBLm004611; Thu, 27 Apr 2023 04:46:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=kGUJjqL1+qg8otYMpB2IAWWgUB5E/UIRkLDwAapWdsQ=; b=ogx9IDv8iZqvPRY43Av0RYr9lEilnSZWS5EU3/1VES9lhuxAva42kotWUQ/zEBZnDYoU jude2oEAZtLjPi2B4lU5Y56866duPrk24+qljHXdTTUZ2BhJaH0aNlUE6DzBZaljgvKV 68DrFN8tMo+jXthGlh0vZzxGK/TaeE3Jk74KaUOE78txz5IAJLrHtdiI9wmLpwGdoDMC ENAZKKZ1GaLKszkMu0I5s6yHEp0Lz106PuU7qEL20adSieHdPIdEywIoH5MD5k8wTiFk L2WPDWmFI6k8gHOghpNiuQLaMqYqZ2kkpG26gS6Ndl5lMz0VqlyBjevpq3XATA9ovApB Bw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3q4c0pqn81-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Apr 2023 04:46:57 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 27 Apr 2023 04:46:55 -0500 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 27 Apr 2023 04:46:55 -0500 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 9244615A4; Thu, 27 Apr 2023 09:46:55 +0000 (UTC) Date: Thu, 27 Apr 2023 09:46:55 +0000 From: Charles Keepax To: Mark Brown CC: Lee Jones , , Subject: Re: [PATCH] mfd: wm831x: Use maple tree register cache Message-ID: <20230427094655.GD68926@ediswmail.ad.cirrus.com> References: <20230419-mfd-wm831x-maple-v1-1-e03e39d7bb0b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230419-mfd-wm831x-maple-v1-1-e03e39d7bb0b@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-GUID: ijmqoti1ksMpMnDKtPaunMU4NAWRYvJM X-Proofpoint-ORIG-GUID: ijmqoti1ksMpMnDKtPaunMU4NAWRYvJM X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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, Apr 25, 2023 at 07:03:33PM +0100, 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 > --- Reviewed-by: Charles Keepax Thanks, Charles