From nobody Tue Dec 16 11:12:18 2025 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (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 5B50014B092; Fri, 28 Feb 2025 08:04:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729857; cv=none; b=fDETDQSoYoW6kSFcjYPzVZCN3HTIDbHBmPfote15q1y6GwFTz8GR7A+JjCIv+V7uRulPNdmWgpcyV7BZ4HuC2qewFdZM1ZHsWd+yW3CeRo+RH341Iv9Nw7UL/dDNDiLI/hwavlz1yc3zr+3xbliy/2UgeSPykNOsKxP3FKSfaNU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729857; c=relaxed/simple; bh=dw1TQBkvrIyQhac/ZQzbBW90OqwHCvvPGnXkseSfItE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VOMT63WMKrrtTCVgt/1v6UY+8b9UG4yHGydUeV2BX0b9B65wR6gs0FIkiUa+w2dfCQ/aP0UZSu3SK31LEiFTHyHNuiUX1s1K9+5rivKV1b+irgo1Wa0E5J2r1CToZPDGc3Q6tNIWBWQpbjtQTNdxjyDRmn9miVide/TPwDS9Cfs= 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.26.145 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 jtjnmail201602.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202502281604081785; Fri, 28 Feb 2025 16:04:08 +0800 Received: from localhost.localdomain (10.94.16.254) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.39; Fri, 28 Feb 2025 16:04:07 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 1/9] power: supply: bd99954: convert to use maple tree register cache Date: Fri, 28 Feb 2025 03:02:28 -0500 Message-ID: <20250228080236.2759-2-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250228080236.2759-1-liubo03@inspur.com> References: <20250228080236.2759-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2025228160408da40222ee3984afbbfd2f4c4bef53ba0 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/power/supply/bd99954-charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bd99954-charger.c b/drivers/power/supply/= bd99954-charger.c index 54bf88262510..bd884ebee904 100644 --- a/drivers/power/supply/bd99954-charger.c +++ b/drivers/power/supply/bd99954-charger.c @@ -156,7 +156,7 @@ static const struct regmap_config bd9995x_regmap_config= =3D { .reg_stride =3D 1, =20 .max_register =3D 3 * 0x100, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, =20 .ranges =3D regmap_range_cfg, .num_ranges =3D ARRAY_SIZE(regmap_range_cfg), --=20 2.31.1 From nobody Tue Dec 16 11:12:18 2025 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (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 8636014B092; Fri, 28 Feb 2025 08:04:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729862; cv=none; b=e2I+BjHBPcaw+3rme9VjPEauLMmhHg7DZnb04+j1lLHIPHOi9Mmmeth40/W8j7VqPN3+4bkRomjEqOETBvxwtmGSJk2tmUMSDDPcKuERs0IK3J/P8D4iTHqEUipF5Th43RQK5TIMtzivEzzu1/VCLw0MaGsgqUWVv945CkZD5AE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729862; c=relaxed/simple; bh=R3L4bOwybWTMyEUF1rBddcs02NJZoKzJVudoG7RGb5c=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Q2dDItqXRQJHbx29rObrWMgwWNwbJzy+PtdChzz5pnXWn0jG8ZMTkFIIdaThIOtL05GTKVZ6m4IjAauStyItUBmQ+V0z3x6565JeiIMTJmUraCMV9JqlORquwVCt6Ww4+QTnyKQP6RzDje5alP4Wnwfx413v9a0mY5RNK4D2uvk= 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.26.145 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 jtjnmail201602.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202502281604081799; Fri, 28 Feb 2025 16:04:08 +0800 Received: from localhost.localdomain (10.94.16.254) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.39; Fri, 28 Feb 2025 16:04:08 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 2/9] power: supply: bq24257: convert to use maple tree register cache Date: Fri, 28 Feb 2025 03:02:29 -0500 Message-ID: <20250228080236.2759-3-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250228080236.2759-1-liubo03@inspur.com> References: <20250228080236.2759-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2025228160408da40222ee3984afbbfd2f4c4bef53ba0 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/power/supply/bq24257_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq24257_charger.c b/drivers/power/supply/= bq24257_charger.c index 1416586f2459..766eecb35694 100644 --- a/drivers/power/supply/bq24257_charger.c +++ b/drivers/power/supply/bq24257_charger.c @@ -113,7 +113,7 @@ static const struct regmap_config bq24257_regmap_config= =3D { .val_bits =3D 8, =20 .max_register =3D BQ24257_REG_7, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, =20 .volatile_reg =3D bq24257_is_volatile_reg, }; --=20 2.31.1 From nobody Tue Dec 16 11:12:18 2025 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (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 D861310E5; Fri, 28 Feb 2025 08:04:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729860; cv=none; b=bJxmQDMIEQQ23xx25827BlgoTSClUMOZ0U3nUhCZC5A5HAOEhDIffCpz6v2fZE4tQ9NnderaiQd6CMdLY+8yBYYn6y01sDRZXqPgenfiuEs6TV/xrTrvvjgJcdYm4QVRZF1X7u7KvLpHYjxeQotCN1R2Q05Hp5mu72c/ZvFMlR8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729860; c=relaxed/simple; bh=GEvryLHMMg3AolUb29+/LBGN0pGCfWs+tn12IadqdDI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tinQ4Q4CNaRfA1ClBDaMMH12g79O2cn43jBKO20lVA7ODFltsMCRLiHgk+C9m1Lg4RH47zfJBR3ZjLw/P1CwH1mrKkP+RLkTA9PfR7eVpfHV9dduzKCSOi8IS6jueksAFHoV67hTvNN9/J0fbEKqnl6DHRZgGzi0WNvgaj9a/oI= 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.26.145 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 jtjnmail201602.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202502281604091828; Fri, 28 Feb 2025 16:04:09 +0800 Received: from localhost.localdomain (10.94.16.254) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.39; Fri, 28 Feb 2025 16:04:08 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 3/9] power: supply: bq2515x: convert to use maple tree register cache Date: Fri, 28 Feb 2025 03:02:30 -0500 Message-ID: <20250228080236.2759-4-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250228080236.2759-1-liubo03@inspur.com> References: <20250228080236.2759-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 202522816040988bf0c9f1a5945ecf11573d5ab4a34d6 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/power/supply/bq2515x_charger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/bq2515x_charger.c b/drivers/power/supply/= bq2515x_charger.c index a3424f67f2b1..6909b1322f0d 100644 --- a/drivers/power/supply/bq2515x_charger.c +++ b/drivers/power/supply/bq2515x_charger.c @@ -1060,7 +1060,7 @@ static const struct regmap_config bq25150_regmap_conf= ig =3D { .max_register =3D BQ2515X_DEVICE_ID, .reg_defaults =3D bq25150_reg_defaults, .num_reg_defaults =3D ARRAY_SIZE(bq25150_reg_defaults), - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .volatile_reg =3D bq2515x_volatile_register, }; =20 @@ -1071,7 +1071,7 @@ static const struct regmap_config bq25155_regmap_conf= ig =3D { .max_register =3D BQ2515X_DEVICE_ID, .reg_defaults =3D bq25155_reg_defaults, .num_reg_defaults =3D ARRAY_SIZE(bq25155_reg_defaults), - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .volatile_reg =3D bq2515x_volatile_register, }; =20 --=20 2.31.1 From nobody Tue Dec 16 11:12:18 2025 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (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 CBC3A1DE2C9; Fri, 28 Feb 2025 08:04:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729866; cv=none; b=N8oL2vhpxivZr8uxP6I06ssLEc0J0DfoDLWOgh/GhhKnP0vWI2x4E+ORmDPUYPeYvZ+VnhCQ0bJNVNqsXwYmRTwUkX8uSFFGbVbvjFMtmLqnan8wvrHAtNdZHccAvOASGm1+ectJbV8+MXO97aBjzo2ICTZDapzA+2F8Ebnxpbc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729866; c=relaxed/simple; bh=U56EgwxoyeVmpJO22ghuZQ7id7oDbuEKy3lpE6x2eoY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QABoPZWBg5WiNIMcRbSv/gP9R+apU+nGv/8lF/JhjyquP4HnHCuYu9lp7EVUjd7+jWQVNnSW43orr9D5hUGPihnNjrfpPU2btXtRljBDV+41vseu52JQksCj6mRJBwgaYMXG4wWyZ00ipWCf+DiSZl+L2t6KhTw/fwdkoamhQWE= 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.26.145 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 jtjnmail201602.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202502281604101847; Fri, 28 Feb 2025 16:04:10 +0800 Received: from localhost.localdomain (10.94.16.254) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.39; Fri, 28 Feb 2025 16:04:09 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 4/9] power: supply: bq25890: convert to use maple tree register cache Date: Fri, 28 Feb 2025 03:02:31 -0500 Message-ID: <20250228080236.2759-5-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250228080236.2759-1-liubo03@inspur.com> References: <20250228080236.2759-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2025228160410b0846fe8585b468c2ba630187eb5116b 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/power/supply/bq25890_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/= bq25890_charger.c index 2f5ceaf00b94..868e86e1749b 100644 --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -164,7 +164,7 @@ static const struct regmap_config bq25890_regmap_config= =3D { .val_bits =3D 8, =20 .max_register =3D 0x14, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, =20 .wr_table =3D &bq25890_writeable_regs, .volatile_table =3D &bq25890_volatile_regs, --=20 2.31.1 From nobody Tue Dec 16 11:12:18 2025 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (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 307281DE88E; Fri, 28 Feb 2025 08:04:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729870; cv=none; b=P6W97zIBkdl7JbEyufRhbSzGipsi87tJTeVR+d7ydTv84xQgHEbwDP4WtgG1otUqjqfuvAh9i72/HbWYs0Dr72GgiM5qkpwd6AqN6SPXwnwmV0je/484X7Y8TuYCHZKEKypDVLCievaDQm7w6DcPZplPDBmHW15sdrKVsohqi8E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729870; c=relaxed/simple; bh=Ds9eQPcw+VivkTdp9zgd6Mv0zpmocJfs2zDzJmaboVU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kZrcvr5f3BeFq49HPSvXqVQIl0FsdnC6JXUZFm7lNS4o3se9OAWVex0RC6kk7lNQNSA9frUPA9ms7GjgAFrdO7cXUo7pEzgwPbdHoNqUq79F7n2GgSCgszFNop0pg1UkxsWHJt/K+df60Q9rfSBOhDjEKYeh42qjaaPfMwZedQU= 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.26.145 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 jtjnmail201602.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202502281604111894; Fri, 28 Feb 2025 16:04:11 +0800 Received: from localhost.localdomain (10.94.16.254) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.39; Fri, 28 Feb 2025 16:04:10 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 5/9] power: supply: bq25980: convert to use maple tree register cache Date: Fri, 28 Feb 2025 03:02:32 -0500 Message-ID: <20250228080236.2759-6-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250228080236.2759-1-liubo03@inspur.com> References: <20250228080236.2759-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2025228160411dc3146e8d022b94fc58968a4e9d8490b 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/power/supply/bq25980_charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/bq25980_charger.c b/drivers/power/supply/= bq25980_charger.c index 0c5e2938bb36..8fdcd55ab775 100644 --- a/drivers/power/supply/bq25980_charger.c +++ b/drivers/power/supply/bq25980_charger.c @@ -932,7 +932,7 @@ static const struct regmap_config bq25980_regmap_config= =3D { .max_register =3D BQ25980_CHRGR_CTRL_6, .reg_defaults =3D bq25980_reg_defs, .num_reg_defaults =3D ARRAY_SIZE(bq25980_reg_defs), - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .volatile_reg =3D bq25980_is_volatile_reg, }; =20 @@ -943,7 +943,7 @@ static const struct regmap_config bq25975_regmap_config= =3D { .max_register =3D BQ25980_CHRGR_CTRL_6, .reg_defaults =3D bq25975_reg_defs, .num_reg_defaults =3D ARRAY_SIZE(bq25975_reg_defs), - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .volatile_reg =3D bq25980_is_volatile_reg, }; =20 @@ -954,7 +954,7 @@ static const struct regmap_config bq25960_regmap_config= =3D { .max_register =3D BQ25980_CHRGR_CTRL_6, .reg_defaults =3D bq25960_reg_defs, .num_reg_defaults =3D ARRAY_SIZE(bq25960_reg_defs), - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .volatile_reg =3D bq25980_is_volatile_reg, }; =20 --=20 2.31.1 From nobody Tue Dec 16 11:12:18 2025 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (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 B1E291DED71; Fri, 28 Feb 2025 08:04:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729874; cv=none; b=KJaSyxExLG5sCZru735bPoVb9BaVeTtHtMtuyKqJP5YO74MUsF5olDtu7xgOp1L2Sp9nW6vxc4hBXZw4WjPiQUPnJgfZabdX+1JfUYasdxux4YmNG2LvoehgeNzjhbtG0orst0J7G8HHZy49bgfokWINjnUtsFA68Qu1DmlRvnU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729874; c=relaxed/simple; bh=cRraVrCsk7oih973hMyVgNXX546h2/sFoqEXMgAY73E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=t2iyUkj2Bccs5EMyHnjKL/gYPqpzRxwMX/aj9uGsNUUzLDENIzWFx0Uy1G4hAWJH9LDYPEpRkYZzNoUeyxPeoI1f1E1+CXVB0vK/wSZOaZaJCJlace19DPfN+1gSAvaQIKJKOQIJ1LjijwVQ2OXaF1n0A/jLQYiocifUPlH64vU= 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.26.145 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 jtjnmail201602.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202502281604121904; Fri, 28 Feb 2025 16:04:12 +0800 Received: from localhost.localdomain (10.94.16.254) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.39; Fri, 28 Feb 2025 16:04:10 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 6/9] power: supply: ltc4162l: convert to use maple tree register cache Date: Fri, 28 Feb 2025 03:02:33 -0500 Message-ID: <20250228080236.2759-7-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250228080236.2759-1-liubo03@inspur.com> References: <20250228080236.2759-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2025228160412efab2db1656c3b236493fa94adeef672 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/power/supply/ltc4162-l-charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/ltc4162-l-charger.c b/drivers/power/suppl= y/ltc4162-l-charger.c index 23eb426295db..99566f3c0946 100644 --- a/drivers/power/supply/ltc4162-l-charger.c +++ b/drivers/power/supply/ltc4162-l-charger.c @@ -1119,7 +1119,7 @@ static const struct regmap_config ltc4162l_regmap_con= fig =3D { .writeable_reg =3D ltc4162l_is_writeable_reg, .volatile_reg =3D ltc4162l_is_volatile_reg, .max_register =3D LTC4162L_INPUT_UNDERVOLTAGE_DAC, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static void ltc4162l_clear_interrupts(struct ltc4162l_info *info) --=20 2.31.1 From nobody Tue Dec 16 11:12:18 2025 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (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 E0DE71D63FD; Fri, 28 Feb 2025 08:04:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729860; cv=none; b=K5hH9QouWKVjKwpzE8casO1Hn3JHyazJDcIUxwOQp+JREAhZVS91mCXIaGzmTH0qEGqhJObLNbLxdJz12vjHhBZDLi1EbcLoXcjnkn24h6lV+wp5r4iy8tdVEpq5IbP8U8aXax/0EDiWUOfm7Dcu43aDwR6egRXWx2pV21DlHOI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729860; c=relaxed/simple; bh=OiBZCj1VeC6RNWslHH4cbUhWynS1YXoc3+w5Uzr+jTc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MDPE6Ruqn0rupe77n1w7nyPpjQ69Nhw8rFSG3QVax0un0MWcev3xHvvoigkcMK3NyPpHg5zLrubm5o1QDyF/Tvt6wOIjrBgEYzeEh/QecEQPysyQbDnR9z5ZH1K68FQOPZqUr6V8MNY3gvp+MQLXJw0UF68QXvRdkloaPy3OKbM= 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.26.145 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 jtjnmail201602.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202502281604131922; Fri, 28 Feb 2025 16:04:13 +0800 Received: from localhost.localdomain (10.94.16.254) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.39; Fri, 28 Feb 2025 16:04:12 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 7/9] power: supply: max1720x: convert to use maple tree register cache Date: Fri, 28 Feb 2025 03:02:34 -0500 Message-ID: <20250228080236.2759-8-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250228080236.2759-1-liubo03@inspur.com> References: <20250228080236.2759-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 20252281604131971bab0f3dd17d86cda873d344aa8c6 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/power/supply/max1720x_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/max1720x_battery.c b/drivers/power/supply= /max1720x_battery.c index c1eaf3f7a782..ea3912fd1de8 100644 --- a/drivers/power/supply/max1720x_battery.c +++ b/drivers/power/supply/max1720x_battery.c @@ -119,7 +119,7 @@ static const struct regmap_config max1720x_regmap_cfg = =3D { .val_format_endian =3D REGMAP_ENDIAN_LITTLE, .rd_table =3D &max1720x_readable_regs, .volatile_table =3D &max1720x_volatile_regs, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static const struct regmap_range max1720x_nvmem_allow[] =3D { --=20 2.31.1 From nobody Tue Dec 16 11:12:18 2025 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (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 1DC901DE2D7; Fri, 28 Feb 2025 08:04:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729865; cv=none; b=gLttFB47ig8xKpga7hl6NhFH7nU9lCQfWtR3W7T8j1pYElS7GUx+KX8Esmkef9mEjMCOCaBBWOI5ErsIi2QH1QYAsr3c4858q37ZDfwnPW8x2YPqxb2/1cX9RxVnJoXduumullQzNQ6LalkyEJJKDxrlsTb98TfsvMCMM1tcAhU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729865; c=relaxed/simple; bh=bTW5lHMAe3sUEa49Ua+XwSqzM0Gt6INQVEE0T+NIjrQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=A0GBaTiwaaKjKNs7Cos61IlaLuedzELrYRKEH+WFzCXpAm+5UswaRmALzhi4NL4rQyw7Mr/Ei85zSKclcNs2uL/54yrYZHU4J3PkFpVIcxd+nzzK5T5Dp/DK0eMrD5D+6HUDwxnYOTzG5qafNEdxRDvRX84YYWqVhr0L6gNBrrk= 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.26.145 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 jtjnmail201602.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202502281604141935; Fri, 28 Feb 2025 16:04:14 +0800 Received: from localhost.localdomain (10.94.16.254) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.39; Fri, 28 Feb 2025 16:04:13 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 8/9] power: supply: rt9455: convert to use maple tree register cache Date: Fri, 28 Feb 2025 03:02:35 -0500 Message-ID: <20250228080236.2759-9-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250228080236.2759-1-liubo03@inspur.com> References: <20250228080236.2759-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2025228160414b0ae14750ff103693320210b413a027c 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/power/supply/rt9455_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/rt9455_charger.c b/drivers/power/supply/r= t9455_charger.c index 64a23e3d7bb0..ff15e20ec70a 100644 --- a/drivers/power/supply/rt9455_charger.c +++ b/drivers/power/supply/rt9455_charger.c @@ -1579,7 +1579,7 @@ static const struct regmap_config rt9455_regmap_confi= g =3D { .writeable_reg =3D rt9455_is_writeable_reg, .volatile_reg =3D rt9455_is_volatile_reg, .max_register =3D RT9455_REG_MASK3, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int rt9455_probe(struct i2c_client *client) --=20 2.31.1 From nobody Tue Dec 16 11:12:18 2025 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (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 F0C781DE2D7; Fri, 28 Feb 2025 08:04:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729869; cv=none; b=MxQs1B7z2LU7C8OjntRCzeKe0IACW03NEBe5dl5mvCUBtpTnVt5F2vjo+KdTH00PhrQKZhuTSYddTwOsmYgGmmqOtZLtEOR8P+Dltj3Fc1v+rwC2S/096O6kJ98xqngXTfr9cXdXeG95o7rVKuJHiTUEzwhhL1fhg5fUdzRGv5Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740729869; c=relaxed/simple; bh=LZeDjq3zcDhwawYqyuQVbx9MgRYcL24VFWPCX1A1+YE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aL8CHV8jxBMyLYyABFofA3N8OlbFnbTv/+O+8kZNQyQDn/FmQbzsJAv8Yl9ynDttAQi0Rzz16ck+AEVu1JSbZuFz2ySIpCqI9R6YUPsy5LXBB8w3+9NFCdLV2rUNDs++tTw3MQuQyZcSBnJgUdx91vjgbwzSBR1eT7WoTKn2EqA= 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.26.145 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 jtjnmail201602.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202502281604151950; Fri, 28 Feb 2025 16:04:15 +0800 Received: from localhost.localdomain (10.94.16.254) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.39; Fri, 28 Feb 2025 16:04:14 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 9/9] power: supply: smb347: convert to use maple tree register cache Date: Fri, 28 Feb 2025 03:02:36 -0500 Message-ID: <20250228080236.2759-10-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250228080236.2759-1-liubo03@inspur.com> References: <20250228080236.2759-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 20252281604153e8fb176888a91abaffca26035795d77 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/power/supply/smb347-charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/smb347-charger.c b/drivers/power/supply/s= mb347-charger.c index c8392933ee28..75ad3bb16ac8 100644 --- a/drivers/power/supply/smb347-charger.c +++ b/drivers/power/supply/smb347-charger.c @@ -1488,7 +1488,7 @@ static const struct regmap_config smb347_regmap =3D { .max_register =3D SMB347_MAX_REGISTER, .volatile_reg =3D smb347_volatile_reg, .readable_reg =3D smb347_readable_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static const struct regulator_ops smb347_usb_vbus_regulator_ops =3D { --=20 2.31.1