Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1378833lqt; Wed, 20 Mar 2024 02:00:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUh6s9XUQdMuuly6prz1S4nmbc5lZSWj/J/pFmX4rq08sn2gOxdFiAOnYYgRbVT0WMXz+04AfJa4vIvACD9FNZ2/THQuC5vRwh58CliJA== X-Google-Smtp-Source: AGHT+IEyGSRNXlEC9bBQsHP73BMzs+nQ1d1RI6Zk3JjCz2DNJnc+u2koTluTwvqAYNkGRNYPPOBr X-Received: by 2002:a17:902:f648:b0:1de:f99d:c4dc with SMTP id m8-20020a170902f64800b001def99dc4dcmr1791008plg.0.1710925229270; Wed, 20 Mar 2024 02:00:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710925229; cv=pass; d=google.com; s=arc-20160816; b=QXaZPST205aBJTnCEjHJwaONgBQFOf2RRgCkMLZAyvv9XhRKscB4gm8m2ZJElCXB7C V0mCuobVBhwlwQGcszv5m6ysMNAerR4YA+L2+hdcEIia7k9bv/BpmYLDAjr/VRVGxgcE AHaN+FFz/eqVoTBitKRQ0L/RqMyQral4htRHfxj3I8/7XnqpjIiqVfN+/Kaav8yJRHsC IZtFQKAUhkrkTuPP9hxsGvq4MjaauSDnfcayu8c73jTQDZB1/sPe2YjfVujg6txgPrR2 VdhG+ZrgekFnT8gX1luXAzrARwF2bSKy6Baga1a/BCPim7uWwE0Kh5QFgGJdimmoZJ17 mpeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=abuse-reports-to:tuid:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=wGAIRq+QRTaF5RZSkSRf/rPlju5rq4iJPnO+N9yXklY=; fh=ylGxeYDzupWRersxMfuRoDdGzjRmuyBko7KC/8yNBnI=; b=E1L6RX4BsBNpzhmygp/l/P1nPJZ4OYZLqsAMMPfcY3M/QZXD5jaqgygLKDQ2rnIois 5AR9p310YPvmNu6wj3EKEZ0KTpj5ZMR/zed879BSLHVyDRm9GRYbCxpKW/rDOV0U/bD2 8L86IzDwhZNKMOU3gGNo0AQDVxQWegcsefYmsQWKy4rnL54Wjanwk9pPKncPC82vH28K nS4vVoPHlzHeOeUzcQwu98xtuB9/XZQtCK2M09FrvhwCBuXt2WPr+n1w9wDbVNLq2aWk NZMornLD4stHoci4H31H6HnZcfcZFK+j1ldy+AmVnr+adDajCU5GPMxCesR4di2l8Tnj hNaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-108664-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108664-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k9-20020a170902ce0900b001e00e737d77si7106514plg.404.2024.03.20.02.00.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 02:00:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108664-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-108664-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108664-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EE20E281789 for ; Wed, 20 Mar 2024 09:00:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D11124439E; Wed, 20 Mar 2024 08:58:05 +0000 (UTC) Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84D1D4122D for ; Wed, 20 Mar 2024 08:58:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925085; cv=none; b=VKlmFhvWYOwbVeLwYEAwnFh2NOOTZUKpIFZ2mgicPbUReBj78YzyW9wFk52R/FG/8ADuDVLVd+cQba8mKYvpV93QI2+q7pUkvew3EWzU5cih9lvz0CNMjPkZtCQblM6w5Vfk5opJkbuS4iHwFVxrDHTUDlaRpwYFEY8W9SUe//c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925085; c=relaxed/simple; bh=guQ3MNDgPBeZTeb7u4yoMx2AzpXuNt03uEuL2ankz0g=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MbYpocaqURY88C9RWL97fZLea/IhhKYMJ+lD6aJL526wgc7QhrrkWLCj0hk06iGl+pmXwNIvok43KAlcneKRbYET8WAew40QVFdDTTzpBNKo2bJ/LGHP573yLOXRJd8D35tS89fLItgAmnQeA7yyxO47mdik80HuMcSSfRvjy0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com; spf=pass smtp.mailfrom=inspur.com; arc=none smtp.client-ip=210.51.61.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inspur.com Received: from ssh248.corpemail.net by ssh248.corpemail.net ((D)) with ASMTP (SSL) id RDA00059; Wed, 20 Mar 2024 16:57:59 +0800 Received: from localhost.localdomain (10.94.17.92) by jtjnmail201610.home.langchao.com (10.100.2.10) with Microsoft SMTP Server id 15.1.2507.35; Wed, 20 Mar 2024 16:57:59 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 12/13] regulator: tps62360: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:39 -0400 Message-ID: <20240320085740.4604-13-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20240320085740.4604-1-liubo03@inspur.com> References: <20240320085740.4604-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain tUid: 2024320165759922fca2369729d4ef794648c87e4bd0d X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com 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: Bo Liu --- drivers/regulator/tps62360-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c index 32e1a05a57fd..be6a6702cbfa 100644 --- a/drivers/regulator/tps62360-regulator.c +++ b/drivers/regulator/tps62360-regulator.c @@ -275,7 +275,7 @@ static const struct regmap_config tps62360_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = REG_CHIPID, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static struct tps62360_regulator_platform_data * -- 2.18.2