From nobody Fri Sep 20 01:35:28 2024 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 1717011720 for ; Wed, 20 Mar 2024 08:57:51 +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=1710925075; cv=none; b=HwYJ84vWtWAS3dQKY3gO7nRKRBB06atBsAX2+0ZErWVFk244EI7gj2ovznedzfj5iJjSwGYg73Pxs8k1HJweewlSdVEY+oAHnz+lm+KJm+sxjntGzuOrXqI28Uy0aIU/dznrKoYnsPVTcBjQ2TjQDY62IJqBWeQEytck9l+6oIQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925075; c=relaxed/simple; bh=sBiif9fhAGNCI/yrck7qHK13G0zJ4qN2nbe0aD9vhsU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=brqU/v8Mgrf7uYWFwEYoxGkLE/8T4V6Rs8ihXY/ZRXL8Ka5UFX6v8pDE5MQTEM7jhsC5iz2l0mCROTIhzYd1x5dUP3T2b1qD74wNdbGliT2yW4qCu8RjaBnUT4271cYskxFYVlKnIsU8oPNMtD21CGOFkZFGFVAoICOEvYb81a0= 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 RDA00046; Wed, 20 Mar 2024 16:57:46 +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:46 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 01/13] regulator: da9121: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:28 -0400 Message-ID: <20240320085740.4604-2-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 tUid: 2024320165746aad7dc223c642e3cd2cb0c306415dbf7 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/regulator/da9121-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/da9121-regulator.c b/drivers/regulator/da912= 1-regulator.c index 5ee76b533576..96257551bb12 100644 --- a/drivers/regulator/da9121-regulator.c +++ b/drivers/regulator/da9121-regulator.c @@ -872,7 +872,7 @@ static struct regmap_config da9121_1ch_regmap_config = =3D { .rd_table =3D &da9121_1ch_readable_table, .wr_table =3D &da9121_1ch_writeable_table, .volatile_table =3D &da9121_volatile_table, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 /* DA9121 regmap config for 2 channel variants */ @@ -883,7 +883,7 @@ static struct regmap_config da9121_2ch_regmap_config = =3D { .rd_table =3D &da9121_2ch_readable_table, .wr_table =3D &da9121_2ch_writeable_table, .volatile_table =3D &da9121_volatile_table, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int da9121_check_device_type(struct i2c_client *i2c, struct da9121 = *chip) --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 17137747F for ; Wed, 20 Mar 2024 08:57:51 +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=1710925075; cv=none; b=P+yuDHDbNNexXSKHYbbMTnae4sklGFEbKtKzIpa1V0flqgsO4pjx6hUm4AAnh9UEJ/oZn2lzO7IUQB/LC6t96tqBcYYIvc2L33xRpqWTBJeJJt/3HhJqELBKfkZelyBk+GSW/G4PO5tFxLeWiodJhxmE+vB4MAgYDnzFStAcyEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925075; c=relaxed/simple; bh=hvv7cHcVQra5jm9gAhsdjQ+/tc7OHDMp6x6QbS699pg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Qdw5fW/5F0Ak4B8fbov2Ez0IFRxtNSaNPDy0+T5FRUG+SaPP0X4D0Su/7MSgE8wD+MdGTF7twFZS6gTA0VUmtCH5B18B3+y8HtMhgnk0pnPKbDSYIKkrHw5d6hOLMl8eHsW0r7/ZvLRWrQC/7oaXRcX0k9M8LIqt25+VxoP0J8Y= 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 RDA00047; Wed, 20 Mar 2024 16:57:47 +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:48 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 02/13] regulator: da9211: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:29 -0400 Message-ID: <20240320085740.4604-3-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 tUid: 20243201657470351910969c524b14ca9b88b663cdbe8 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/regulator/da9211-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da921= 1-regulator.c index af383ff0fe57..d8b39ea3de0e 100644 --- a/drivers/regulator/da9211-regulator.c +++ b/drivers/regulator/da9211-regulator.c @@ -68,7 +68,7 @@ static const struct regmap_config da9211_regmap_config = =3D { .val_bits =3D 8, .max_register =3D 5 * 128, .volatile_reg =3D da9211_volatile_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .ranges =3D da9211_regmap_range, .num_ranges =3D ARRAY_SIZE(da9211_regmap_range), }; --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 828AB38391 for ; Wed, 20 Mar 2024 08:57:54 +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=1710925077; cv=none; b=PSYmGzZGo8wyCxT3ByxI9OKfYOp2Zo/Z+rlv9bsySJc4wCGcyJQYBwjVo47GzSRj7UbNJpnK0HMPU52+veRJ41OaYg91vXFA73k6Qn/8dtV+9heM0WxJGQKEc0yLeEpIoIcseiX59qWILWkpAhbWVhO7LcRbE1hOZ8WYApGPw8Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925077; c=relaxed/simple; bh=O6IfF1UtZXEf9WgKf+QQWaMQ0L3kmcAAuTApKltFe2c=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MKGtl4hdWmQO2NFXx/h0QrJUfc2u6lSQUZXF+02EanmAusJplkCcbrZhSP4qPOjnwGU7q+su2L06Ga9NqfLzc5Kg8v0VLckc251QfpMeZfU5IpK5vJqFPlDDOQWQx9RAsjCc8HNPdmrxZ+PswTu1FpBcx2o4maL73tLdbIm8vaM= 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 RDA00148; Wed, 20 Mar 2024 16:57:48 +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:49 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 03/13] regulator: isl9305: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:30 -0400 Message-ID: <20240320085740.4604-4-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 tUid: 2024320165748010a309a4741b8c4a311e16fbd748384 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/regulator/isl9305.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/isl9305.c b/drivers/regulator/isl9305.c index 0f7560093091..5a234f25e6bb 100644 --- a/drivers/regulator/isl9305.c +++ b/drivers/regulator/isl9305.c @@ -134,7 +134,7 @@ static const struct regmap_config isl9305_regmap =3D { .val_bits =3D 8, =20 .max_register =3D ISL9305_MAX_REG, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int isl9305_i2c_probe(struct i2c_client *i2c) --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 8286436137 for ; Wed, 20 Mar 2024 08:57:54 +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=1710925076; cv=none; b=OkU756ODy+mvNn/IWoMPUQndw/f4IXCeyH9rGglgihpHi4JfhMfRDnwv/xEq8ev5HZgM8yXImyuxbydFSXkEvUnaXJZoHNYMgM8MuQ0y9AXhRMHzrCIOFgY+EAkydXxMelNr4VU61qeXbG/FZabb3T4xixDfLT4R3veySF739W8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925076; c=relaxed/simple; bh=AuLuchQu3l19ZVS0dWfyAjr+YxqkPLwcAWwtKZUMy7Y=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XIDYrXJN69sbyVEbUvKO878h2VUq0FcXAu1oUp4r217fQCCOogZ7TVeTHVKZgatQvRGgwtHJrXPmooufqlr/BcjiD1AhjempF9drQFyMXou9e3eVhrXEk0QXn4xMLdcX2gYI1s3SRMgLZG2NBbhhcnzsNa1ZdzdJ0UZwBX4FRCw= 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 RDA00149; Wed, 20 Mar 2024 16:57:49 +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:50 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 04/13] regulator: max8973: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:31 -0400 Message-ID: <20240320085740.4604-5-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 tUid: 20243201657498b4d6971348aa88bdab48927a145d1e4 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/regulator/max8973-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max8973-regulator.c b/drivers/regulator/max8= 973-regulator.c index f8bb6828feef..96ca146281d6 100644 --- a/drivers/regulator/max8973-regulator.c +++ b/drivers/regulator/max8973-regulator.c @@ -510,7 +510,7 @@ static const struct regmap_config max8973_regmap_config= =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D MAX8973_CHIPID2, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static struct max8973_regulator_platform_data *max8973_parse_dt( --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 828D638394 for ; Wed, 20 Mar 2024 08:57:54 +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=1710925077; cv=none; b=dvtIeUZ8cOzgdlYlQ5hvoDrANnAl89KyryKLlxlkElEqz4lGYlQ9bty3u14jhT1c7koTrhOhjUjW02Zrn4l8dQO46BMeWiulz7PCq6lxmBYW30mSW2D9gyuP+fsau+X4qFWYa2kHx3IMaksNtYPHiSLbRjJbWZyzTyEU7SSgwiI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925077; c=relaxed/simple; bh=SewUkeTXkgIRKg0uYxnU2gaFiMRuA0y29c1F58Men+c=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Qww0Z6ZiOUR1bvbhO14S9lE+aHbiOiTlEXG3kkG/4KxZTqa8tn4EO/7NLv2X72lT9cUgPoZjpYzQEzcd2qNFoGT6FXziU2eryQ6cGBxQbVuxXvjUYLhtLWpIApgN+w/n+ta7tu/bPl9OmcmJG/Y624z2QH/05KmxWMNbYfdY+SI= 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 RDA00050; Wed, 20 Mar 2024 16:57:50 +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:51 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 05/13] regulator: mt6311: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:32 -0400 Message-ID: <20240320085740.4604-6-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 tUid: 2024320165750ed5486ec9672c0407245c005de12d5a1 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/regulator/mt6311-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/mt6311-regulator.c b/drivers/regulator/mt631= 1-regulator.c index 63a51485f2cc..c00638cd2d1e 100644 --- a/drivers/regulator/mt6311-regulator.c +++ b/drivers/regulator/mt6311-regulator.c @@ -20,7 +20,7 @@ static const struct regmap_config mt6311_regmap_config = =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D MT6311_FQMTR_CON4, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 /* Default limits measured in millivolts and milliamps */ --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 8690D3C467 for ; Wed, 20 Mar 2024 08:57:57 +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=1710925079; cv=none; b=EVVAD1/TslmZmkCItDggj0LcmOEIl7wOOAJqw2bc7x27l3V/wdtJmOEyDX5iOjSl/Spy8SWvfxOIifpoAtbt6ZjY+cwZfzLDfaMiR9ZdSMq1zI2uxprZgBAimYrI5XXPJ6aM9dSCKtW8X633i9Tm2Ryoerh2B39QWUC3lXY5BaA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925079; c=relaxed/simple; bh=Wvh4z4Oy6deNtmsMkJ+gSv+5fAhiTzEeMDVWTLQ1uWg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TNNa7pvgw26nihCoNhdDJDdW/9Jb9SBDru0+azTEiEXSmDO/k+eOXpnXeukunjvlajOGngNMtH+fFeHDsdWIEvdlu/U3CvFbJxRhRRt6gZWsq2Fh0O32w9c/tq8sLfs3h+h5kM0o1dyJxRNwz/fHAruxdOD5gDMeQBO89AKa1KQ= 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 RDA00051; Wed, 20 Mar 2024 16:57:51 +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:52 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 06/13] regulator: pca9450: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:33 -0400 Message-ID: <20240320085740.4604-7-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 tUid: 20243201657514b4b5ce374120c782ba5d8809f3d6fc6 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/regulator/pca9450-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pca9450-regulator.c b/drivers/regulator/pca9= 450-regulator.c index 2ab365d2749f..8781e58b74f7 100644 --- a/drivers/regulator/pca9450-regulator.c +++ b/drivers/regulator/pca9450-regulator.c @@ -53,7 +53,7 @@ static const struct regmap_config pca9450_regmap_config = =3D { .val_bits =3D 8, .volatile_table =3D &pca9450_volatile_regs, .max_register =3D PCA9450_MAX_REGISTER - 1, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 /* --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 5FB3F3C068 for ; Wed, 20 Mar 2024 08:57:57 +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=1710925079; cv=none; b=b1saOP1Za+EHn1wIFv2uknJga2huUVNUMdhL+cn+btJVsCNYPRg5twlcfm0Z4p0MGCgNR8t5Oj6JRAQYxIhIsRDZtkYankFZD7yeTXwxU5ZbsGO+OMzlhOZ+Wojxci88CQhudGtVb0u05YFtI55BIgErXhjzxtbTk96XSPAlFS4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925079; c=relaxed/simple; bh=2OfcfejzeCb9iN88vVI/mQ9F7QENDQRERFqXIhXcFoc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Z8qPVKCnhg5v9yeTBirPD9djU+VsQXqzhUvGtmMrqfP18nDqR8LeFG67ktfkpqK2qzP9ovuyQhZ+XpyQokpZ/bUqmSszS/BTgnUEPb/UJQQMGvRtkvirInvTygHDtiJpJqJsPHbfZollBFXutqdtzF5eIBihscYuf6F72Z+5T/o= 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 RDA00052; Wed, 20 Mar 2024 16:57:52 +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:53 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 07/13] regulator: pf8x00: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:34 -0400 Message-ID: <20240320085740.4604-8-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 tUid: 202432016575236fe51fead87bdfab5f671ce3ee858c1 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/regulator/pf8x00-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pf8x00-regulator.c b/drivers/regulator/pf8x0= 0-regulator.c index b0781d9a1058..9fd8e0949b32 100644 --- a/drivers/regulator/pf8x00-regulator.c +++ b/drivers/regulator/pf8x00-regulator.c @@ -142,7 +142,7 @@ static const struct regmap_config pf8x00_regmap_config = =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D PF8X00_PAGE_SELECT, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 /* VLDOx output: 1.5V to 5.0V */ --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 8FC7D3FBB2 for ; Wed, 20 Mar 2024 08:58:00 +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=1710925082; cv=none; b=lNS2Z5mOBIJWsZdZdK5eAtsebQT+Q7sGJcL9v3GE1t4StubZAy7HcY4Pzv4tBaYiXBTrulq57syXiC7StmaESDtDzirAwH1n6W3aFByqjiC3JWEukBS8+pe2wXBsah2ihY71emITj78euNPu7EkmKk4oI4VRUu0pRWK2fEZgPlE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925082; c=relaxed/simple; bh=hH4XCpkO9AUdbLdm2eAXWrmDLlKqakm6XkL5rn0HaVk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QCR0Uea3CrJHqDcrOo4PD9qzqkSLjxPKk82YyBa61IPWfYTFtDYW8pgCe9rxKo6cZb3YY/PIXKcZC9+f3OCD2CTkmNRD9nF182RjOU2347TJm1wHCbJ60gk/sJZX3t3+1oi5th2FKH1lL1Iugwpm6vJzKPGITVN1e4O2eB53GMY= 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 RDA00153; Wed, 20 Mar 2024 16:57:53 +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:54 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 08/13] regulator: pfuze100: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:35 -0400 Message-ID: <20240320085740.4604-9-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 tUid: 202432016575329b382f83f33a89471747f9a5084164d 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/regulator/pfuze100-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfu= ze100-regulator.c index 46854602b3ea..7c04870442d3 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -680,7 +680,7 @@ static const struct regmap_config pfuze_regmap_config = =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D PFUZE_NUMREGS - 1, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int pfuze100_regulator_probe(struct i2c_client *client) --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 77C9C3FB9A for ; Wed, 20 Mar 2024 08:58:00 +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=1710925082; cv=none; b=f/wUMHyCYGToVDZFZBbA+7w2FleGkQtaAXPFDg4r89yp3IsLpDq/c8D61DzwH1pK1gDZAAbEi2RAIgYZv/5m2S72sO7phUr+sam04fOO1Q5a4XBokEaBPVGqsA2WGzYl+erqSTc8KUJ8lCfxeKD6ciuUw/YIHqE2TWiHfLAE6n8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925082; c=relaxed/simple; bh=zBOalU4rrrEjXh341Q9ScXERLDVCcmVH1f7WW5Yw8zE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lZNHL9iDB47snwg09W6Rp8/8bhNKdPNG8YrOaM2YXk2WbqwOQTftAgV5lnXGtTcC5A0gLwVsOise1dFbEJS0UwgWx1+d50ZfNdB4T/oP0/Orp0g60gecOA5MpRMAw+SHgiRfdtIiV/0LdbZiWGXhzHdB0HRfRpaE5iFZenjVEeo= 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 RDA00055; Wed, 20 Mar 2024 16:57:55 +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:55 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 09/13] regulator: rtmv20: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:36 -0400 Message-ID: <20240320085740.4604-10-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 tUid: 202432016575599dce4ce8f4c4c7ca6b8396a8419d560 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/regulator/rtmv20-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rtmv20-regulator.c b/drivers/regulator/rtmv2= 0-regulator.c index dfd1522637e4..3d8d29f87b58 100644 --- a/drivers/regulator/rtmv20-regulator.c +++ b/drivers/regulator/rtmv20-regulator.c @@ -312,7 +312,7 @@ static bool rtmv20_is_volatile_reg(struct device *dev, = unsigned int reg) static const struct regmap_config rtmv20_regmap_config =3D { .reg_bits =3D 8, .val_bits =3D 8, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .max_register =3D RTMV20_REG_LDMASK, .num_reg_defaults_raw =3D RTMV20_MAX_REGS, =20 --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 8FC553FBAF for ; Wed, 20 Mar 2024 08:58:00 +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=1710925082; cv=none; b=EGnQt2Dt8QkLuaCtEK0bERz8rXrO3blDjIW56k8LcIHx6cx1TU/q52XvrGXmm8VFXLgZpmTtE0Kdtw8g3QJE3zEniEeE8pPZOYeAl+NppM+VT9nKOSTnxHUnzjOp7/PDg8iGZ1NceReyxvJxz4c7U/fR4eogdawvDlmVjNN93nI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925082; c=relaxed/simple; bh=KTThakjEVLSm9rYtl4XZGoVpA/S/KB4K11m8jZ5OaAw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GjWjvXX3aWEf+gFqe77g7Unw+hCSjydWwId6ONdOHcSNhD6osjH3kOhbjWcFDt5gozdnrQN3ACjsTUZW5e3ahEOH8636xN+D25ujiH9ZW9DUmiw7Af48U1xrIfecEZqbfZRD7DKB7ue7YMGJlITnBhqHDfyf5bwaweMQpshPxgk= 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 RDA00056; Wed, 20 Mar 2024 16:57:56 +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:57 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 10/13] regulator: rtq6752: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:37 -0400 Message-ID: <20240320085740.4604-11-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 tUid: 2024320165756186053ed60c66470a40aeceec52f73fc 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/regulator/rtq6752-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rtq6752-regulator.c b/drivers/regulator/rtq6= 752-regulator.c index 8176e5ab0683..d35d844eff3b 100644 --- a/drivers/regulator/rtq6752-regulator.c +++ b/drivers/regulator/rtq6752-regulator.c @@ -209,7 +209,7 @@ static const struct reg_default rtq6752_reg_defaults[] = =3D { static const struct regmap_config rtq6752_regmap_config =3D { .reg_bits =3D 8, .val_bits =3D 8, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .max_register =3D RTQ6752_REG_FAULT, .reg_defaults =3D rtq6752_reg_defaults, .num_reg_defaults =3D ARRAY_SIZE(rtq6752_reg_defaults), --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 84CF241211 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=kf+gQPISlpxsqjmRdrxgl6xLj+ugzWyagnuzQG2NMmYg8aMEcXSSgByag1ilXWENrNetj1rmcQ9TgU9Fqkd3uhh8B6PaThmDxh1dTcZv6YNoE6gLa+S6j7ari4H/bsdZD3g6AH0e2AgnTYOTBUJ9/x+a57DbdEq/m2Dc4pIXrBQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925085; c=relaxed/simple; bh=sA9KN4gZJ9Q7fq569FG0ETO5QmmIlqo/42j1o9boRng=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LXxZbaeUpo/MoVn81aiFzKBnwsZevYrqJwJ/aaKYw18B/b5hg/gQ/vqeSR2K8zlt2boSGPUI9ERBL6TZV/vyCZWmnj18n9yuNjQYsKPl6V4y770dVceK3miOT09Tta+IEf860R+4uMnreSUBBmNEpOGAuQW6sI9qo2oCjMzQv04= 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 RDA00157; Wed, 20 Mar 2024 16:57:57 +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:58 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 11/13] regulator: tps51632: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:38 -0400 Message-ID: <20240320085740.4604-12-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 tUid: 2024320165757743a7b7d53ec78d719e9f0bb659cce6a 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/regulator/tps51632-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps51632-regulator.c b/drivers/regulator/tps= 51632-regulator.c index 5199e0437388..3a384bf9d2c5 100644 --- a/drivers/regulator/tps51632-regulator.c +++ b/drivers/regulator/tps51632-regulator.c @@ -199,7 +199,7 @@ static const struct regmap_config tps51632_regmap_confi= g =3D { .readable_reg =3D is_read_reg, .volatile_reg =3D is_volatile_reg, .max_register =3D TPS51632_MAX_REG - 1, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 #if defined(CONFIG_OF) --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 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 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/regulator/tps62360-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps= 62360-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_confi= g =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D REG_CHIPID, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static struct tps62360_regulator_platform_data * --=20 2.18.2 From nobody Fri Sep 20 01:35:28 2024 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 8BFEB44C92 for ; Wed, 20 Mar 2024 08:58:06 +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=1710925088; cv=none; b=FROuzJCm4hqyeVaozsSEtUE7Cw8rKTPBv+ZQl1ZeFIJN2f8sf9SkPVAnW3CKLPFuOCjQhnPNVfGAOr/JGfCH8AythFk/sbpGDF8cfrmO6n3xlVTAex4/pMyxnMi39YIj5zqNAwLI7JRlcsoOeerAYqIJ4k/LytG3GNHZrnqfY9w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925088; c=relaxed/simple; bh=po8nGs/QX+OygQoV6swHooAskwzfSgOE/HJMqFrbV/E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kbramVMudQN6OHO2X2k0j2HzXjNQgYAlqpqCjYPn6wW4o/8Nyea4S/9maimjqaI49ZKphypzSZmqCwdf9qGXz548qGyYckGM1yjuO1CCppYJlcAK6/WLVlz++sXXozPV8BS9vCp6Bc9H5ArbRgK11pPhQboT4bEOiEWpK9wHOcE= 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 RDB00100; Wed, 20 Mar 2024 16:58:00 +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:58:00 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 13/13] regulator: rpi-panel-attiny: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:40 -0400 Message-ID: <20240320085740.4604-14-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 tUid: 20243201658003ea40bb9b9dfda1388c23940ac561bf7 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/regulator/rpi-panel-attiny-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rpi-panel-attiny-regulator.c b/drivers/regul= ator/rpi-panel-attiny-regulator.c index f52c3d47ecea..6c3b6bfac961 100644 --- a/drivers/regulator/rpi-panel-attiny-regulator.c +++ b/drivers/regulator/rpi-panel-attiny-regulator.c @@ -75,7 +75,7 @@ static const struct regmap_config attiny_regmap_config = =3D { .val_bits =3D 8, .disable_locking =3D 1, .max_register =3D REG_WRITE_DATA_L, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int attiny_set_port_state(struct attiny_lcd *state, int reg, u8 val) --=20 2.18.2