From nobody Mon Feb 9 12:52:32 2026 Received: from unicom146.biz-email.net (unicom146.biz-email.net [210.51.26.146]) (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 9DB6925D90D; Wed, 11 Jun 2025 09:00:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.146 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632421; cv=none; b=qG8DgMBjYBgaCXRHXdoLKCVdoYdLeeYLRb84HpAdsQKh1k1wjkW1TAe/bshEYTazLtci2ZtH9a963N+1nsARqK0aaEWRjwVJKFWHc1CUw+LXeKjEm86+8sAWCFJ6rD5XDEPYt5oPwYeuOF5J/slFsOTP/i9cC+ULFgorBeYuZug= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632421; c=relaxed/simple; bh=qMB0IVjf/eFcUbo2qir82IqBWxx2Dgb/e6s/DzeGxek=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DKcKmqls1QTryAVcMeQ3kFISaRVMgg9P3WbL8kcbLs9ExN4ws+4BOLgv5fDCTzmfW1LvizHgcue5KSDt4nUnrcgavY+Q9W23NX1qD4jefAYzPGRDSH8jz7PUGrKqluo+3caFhCiFt9vZiizi6scda9hfdxEcnymkCfQ4B0N4tmc= 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.146 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 Jtjnmail201618.home.langchao.com by unicom146.biz-email.net ((D)) with ASMTP (SSL) id 202506111659021925; Wed, 11 Jun 2025 16:59:02 +0800 Received: from jtjnmail201607.home.langchao.com (10.100.2.7) by Jtjnmail201618.home.langchao.com (10.100.2.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Jun 2025 16:59:03 +0800 Received: from localhost.localdomain.com (10.94.12.179) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.39; Wed, 11 Jun 2025 16:59:03 +0800 From: chuguangqing To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Jean-Baptiste Maneyrol CC: , , chuguangqing Subject: [PATCH 01/10] iio: chemical: bme680: convert to use maple tree register cache Date: Wed, 11 Jun 2025 16:58:29 +0800 Message-ID: <20250611085838.4761-2-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250611085838.4761-1-chuguangqing@inspur.com> References: <20250611085838.4761-1-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tUid: 20256111659027ba150282aebe609eb8341d2ec05f679 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-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: chuguangqing --- drivers/iio/chemical/bme680_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/chemical/bme680_core.c b/drivers/iio/chemical/bme6= 80_core.c index 3e850562ab00..61d446fd456c 100644 --- a/drivers/iio/chemical/bme680_core.c +++ b/drivers/iio/chemical/bme680_core.c @@ -158,7 +158,7 @@ const struct regmap_config bme680_regmap_config =3D { .val_bits =3D 8, .max_register =3D 0xef, .volatile_table =3D &bme680_volatile_table, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; EXPORT_SYMBOL_NS(bme680_regmap_config, "IIO_BME680"); =20 --=20 2.31.1 From nobody Mon Feb 9 12:52:32 2026 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 C3787257AF9; Wed, 11 Jun 2025 08:59:18 +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=1749632362; cv=none; b=iKUOiVScvRP+CaOMtO4kIyUeyr+WgUiLKCYdyr2fDwy4Og0nzW1H7XOSwU7uRRitLkZPAhBZm50ACjZSDGx5lUZPGWS7tfrvwhr3/MsbrXDDS5RKr3V349g5MrJOZluzs79BNV76vjXAa8HSpN5+NmWGfPAuMqICn1JCHyWhKqQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632362; c=relaxed/simple; bh=Rx9I0gH+j/FABSJTa9fh9g66DDw/GqXCCH519IEVMOU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eRjYviWyijuokgnp1a+dJn9xD8sClfzS9dwOetdd+6Ykx5YfxsNvWlrn7oDD//LR6MoLzqYY9+i5ZuhvbBiTub1L1/I1N/MIuVj8hDFD+GjxySof8Ckbqw7FpMHLyZr2dmkXL0S7Rd7aNPAJfNUklVmLQlxch8BfuDmqL7/NwxQ= 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 Jtjnmail201617.home.langchao.com by ssh248.corpemail.net ((D)) with ASMTP (SSL) id 202506111659049683; Wed, 11 Jun 2025 16:59:04 +0800 Received: from jtjnmail201607.home.langchao.com (10.100.2.7) by Jtjnmail201617.home.langchao.com (10.100.2.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Jun 2025 16:59:03 +0800 Received: from localhost.localdomain.com (10.94.12.179) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.39; Wed, 11 Jun 2025 16:59:03 +0800 From: chuguangqing To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Jean-Baptiste Maneyrol CC: , , chuguangqing Subject: [PATCH 02/10] iio: dac: ad5380: convert to use maple tree register cache Date: Wed, 11 Jun 2025 16:58:30 +0800 Message-ID: <20250611085838.4761-3-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250611085838.4761-1-chuguangqing@inspur.com> References: <20250611085838.4761-1-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tUid: 2025611165904fd726e4cf646a75730e4f4d479ba992d 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-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: chuguangqing --- drivers/iio/dac/ad5380.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/dac/ad5380.c b/drivers/iio/dac/ad5380.c index f63af704b77e..0ddce7b218e3 100644 --- a/drivers/iio/dac/ad5380.c +++ b/drivers/iio/dac/ad5380.c @@ -426,7 +426,7 @@ static const struct regmap_config ad5380_regmap_config = =3D { .val_bits =3D 14, =20 .max_register =3D AD5380_REG_DATA(40), - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, =20 .volatile_reg =3D ad5380_reg_false, .readable_reg =3D ad5380_reg_false, --=20 2.31.1 From nobody Mon Feb 9 12:52:32 2026 Received: from unicom146.biz-email.net (unicom146.biz-email.net [210.51.26.146]) (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 AD352258CC0; Wed, 11 Jun 2025 08:59:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.146 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632360; cv=none; b=PzISswRGKEVtD1CfYZp7MdtHHSJoS+BD7hEBnjPsLVgKXfOky1unXUJfCeJGeSNOEAwVono7Bx4zkizPfQN4imETKFTNesMU5EDxIYgkow5x0pW/uZM1E27h/BWr9aZzMvR/XhB8D4pn4YjOfdfL5Wl83jmVVVXJe/tIj/elNwE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632360; c=relaxed/simple; bh=/7ERONOn65DkAqxdWLDhJF/JgfKwcALHwQpNy4s0gGw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Wlt1pabjb/srMmYW1MfQOJeetBYLi+u/dKX6BgebHJ657numADNgdqrEeKvXmvnfxjWYLicNoNrsxYgni7rXcg7bsdCgmLvSbrbjocwr6UgcEBF3PafHzZ8ggN8hZ8gyz3tUDddvl/MNGo3mOwZLdCBaNyncnoPryyqZjKjE4lo= 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.146 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 Jtjnmail201616.home.langchao.com by unicom146.biz-email.net ((D)) with ASMTP (SSL) id 202506111659031966; Wed, 11 Jun 2025 16:59:03 +0800 Received: from jtjnmail201607.home.langchao.com (10.100.2.7) by Jtjnmail201616.home.langchao.com (10.100.2.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Jun 2025 16:59:04 +0800 Received: from localhost.localdomain.com (10.94.12.179) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.39; Wed, 11 Jun 2025 16:59:03 +0800 From: chuguangqing To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Jean-Baptiste Maneyrol CC: , , chuguangqing Subject: [PATCH 03/10] iio: dac: bd79703: convert to use maple tree register cache Date: Wed, 11 Jun 2025 16:58:31 +0800 Message-ID: <20250611085838.4761-4-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250611085838.4761-1-chuguangqing@inspur.com> References: <20250611085838.4761-1-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tUid: 2025611165903aac6313a1c759c92a6e2828091bde120 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-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: chuguangqing --- drivers/iio/dac/rohm-bd79703.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/dac/rohm-bd79703.c b/drivers/iio/dac/rohm-bd79703.c index a35c37d2261d..e91090e4a66d 100644 --- a/drivers/iio/dac/rohm-bd79703.c +++ b/drivers/iio/dac/rohm-bd79703.c @@ -35,7 +35,7 @@ static const struct regmap_config bd79703_regmap_config = =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D BD79703_MAX_REGISTER, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 /* Dynamic driver private data */ --=20 2.31.1 From nobody Mon Feb 9 12:52:32 2026 Received: from unicom146.biz-email.net (unicom146.biz-email.net [210.51.26.146]) (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 78FE825B1F0; Wed, 11 Jun 2025 08:59:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.146 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632365; cv=none; b=kQABgkmwy8qCsk8hODDHGty1UYuhRvvwUX1EB3LRUjxFj3qDIhvc2TZzeJ3oyWNOo3wSp3OTQZwrkEiziDzglDe0Wq6tAFK7VhCu9EouQj2oJU16oFb/byj3axi42lVU54+yfJj+jLZZb/+pTuS98APred+RzZoXvuXv9mOwSFE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632365; c=relaxed/simple; bh=VF/D12KF+O2uGqA9x7ILCkxRBCK+OvWJpeQDG1Sn+p0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IVOYvchGRXllOZ4zggwrRM6VZhXJSjFp9KrUI/v+SrY4PIz55gjQMfAJyWWhcHuQZXwlxzXdy+XoLptX38hPzI5FpVKNHqhJflInVkoYoj1+Dfx4Vl9ME7GINx1iM5h0PUx1A+Hz6RQfxpOqsKVu0EyzqxhRrwIFSSc5GVS7n7o= 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.146 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 Jtjnmail201615.home.langchao.com by unicom146.biz-email.net ((D)) with ASMTP (SSL) id 202506111659031988; Wed, 11 Jun 2025 16:59:03 +0800 Received: from jtjnmail201607.home.langchao.com (10.100.2.7) by Jtjnmail201615.home.langchao.com (10.100.2.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Jun 2025 16:59:04 +0800 Received: from localhost.localdomain.com (10.94.12.179) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.39; Wed, 11 Jun 2025 16:59:04 +0800 From: chuguangqing To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Jean-Baptiste Maneyrol CC: , , chuguangqing Subject: [PATCH 04/10] iio: health: afe4403: convert to use maple tree register cache Date: Wed, 11 Jun 2025 16:58:32 +0800 Message-ID: <20250611085838.4761-5-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250611085838.4761-1-chuguangqing@inspur.com> References: <20250611085838.4761-1-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tUid: 2025611165903aac6313a1c759c92a6e2828091bde120 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-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: chuguangqing --- drivers/iio/health/afe4403.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/health/afe4403.c b/drivers/iio/health/afe4403.c index 1582cfc03579..30d3f984b032 100644 --- a/drivers/iio/health/afe4403.c +++ b/drivers/iio/health/afe4403.c @@ -405,7 +405,7 @@ static const struct regmap_config afe4403_regmap_config= =3D { .val_bits =3D 24, =20 .max_register =3D AFE440X_PDNCYCLEENDC, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .volatile_table =3D &afe4403_volatile_table, }; =20 --=20 2.31.1 From nobody Mon Feb 9 12:52:32 2026 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 0E38B25DAF4; Wed, 11 Jun 2025 09:00: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=1749632422; cv=none; b=LX38Ce0kCzeNI0m+6L/hVrkNfqfDNtO1WqU/azinljuQwa10h0XxED3czrvE3yvNXy88lyMzDFTaiLU9+DPgYaLIRseSqlvvHlNV4GKBFzZw1mz03UZi/s86eZc9KTg/LtbVlPBhYLuZ8+p0DpqUEVa6Y/RFpqtrphRCuX/xIvE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632422; c=relaxed/simple; bh=qdHdY0mYomgUUuP25pEtrs9RUkr6YQXepCL4Tm8nytA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=C26FhkngqPdxC30gV92dW4eoNKCe1I205eGXDHQlx3cqcmdJHvZow6XaPteMPdUxQ/ittSIxh+0eECJyvd7MXvWnUWtCQYqwcJtMFZiQaKauG+R33xormzm6Af1y/je7CJ214+WQnDDuyNUx2i05bsM2clZ/en/5RGIVS9hfXOM= 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 jtjnmail201612.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202506111659051048; Wed, 11 Jun 2025 16:59:05 +0800 Received: from jtjnmail201607.home.langchao.com (10.100.2.7) by jtjnmail201612.home.langchao.com (10.100.2.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Jun 2025 16:59:04 +0800 Received: from localhost.localdomain.com (10.94.12.179) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.39; Wed, 11 Jun 2025 16:59:04 +0800 From: chuguangqing To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Jean-Baptiste Maneyrol CC: , , chuguangqing Subject: [PATCH 05/10] iio: health: afe4404: convert to use maple tree register cache Date: Wed, 11 Jun 2025 16:58:33 +0800 Message-ID: <20250611085838.4761-6-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250611085838.4761-1-chuguangqing@inspur.com> References: <20250611085838.4761-1-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tUid: 2025611165905828bf27d5be692cabd28fa2b0c2e37f1 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-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: chuguangqing --- drivers/iio/health/afe4404.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/health/afe4404.c b/drivers/iio/health/afe4404.c index 99ff68aed27c..b2727effecaa 100644 --- a/drivers/iio/health/afe4404.c +++ b/drivers/iio/health/afe4404.c @@ -413,7 +413,7 @@ static const struct regmap_config afe4404_regmap_config= =3D { .val_bits =3D 24, =20 .max_register =3D AFE4404_AVG_LED1_ALED1VAL, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .volatile_table =3D &afe4404_volatile_table, }; =20 --=20 2.31.1 From nobody Mon Feb 9 12:52:32 2026 Received: from ssh247.corpemail.net (ssh247.corpemail.net [210.51.61.247]) (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 2E6A725CC54; Wed, 11 Jun 2025 09:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.247 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632421; cv=none; b=VaVt4lOxQc97gVHI1zURxZ3QJsoTz3JGVcd0PInMbrHjD4j+FCq1NQKkMwZtkqqQUsRln+56QBD2X7FU69wXHCw5zwKlkeU5ur4sG3WliSawLKEWGJ66mU2hBjp4HU5jjBTIYR0GcG8cWwoKhJLHv0Ftb0VjqCgBTMYUv6oj8eE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632421; c=relaxed/simple; bh=O/+Z1CoNDX/mRDXuev9DfNfUrUDAApxbIMNCdEWUjNE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dSmYBe2E7KFeVspSAL/EWg1UprkaEPd9ANC58x1vT3D7wusA1Y52LPP+A40r7zEO/ogSej7Qbhupjp2yXGwv+i4W4Vt0+Qvx5KNaDRGhMpDNcCkpAYmKlNocgqrvp/4V/zzP1gSNefjo8L3JTMi1a5JtHPm6J/1VvQLYHIv4+qk= 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.247 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 jtjnmail201611.home.langchao.com by ssh247.corpemail.net ((D)) with ASMTP (SSL) id 202506111659050561; Wed, 11 Jun 2025 16:59:05 +0800 Received: from jtjnmail201607.home.langchao.com (10.100.2.7) by jtjnmail201611.home.langchao.com (10.100.2.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Jun 2025 16:59:04 +0800 Received: from localhost.localdomain.com (10.94.12.179) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.39; Wed, 11 Jun 2025 16:59:04 +0800 From: chuguangqing To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Jean-Baptiste Maneyrol CC: , , chuguangqing Subject: [PATCH 06/10] iio: imu: icm42600: convert to use maple tree register cache Date: Wed, 11 Jun 2025 16:58:34 +0800 Message-ID: <20250611085838.4761-7-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250611085838.4761-1-chuguangqing@inspur.com> References: <20250611085838.4761-1-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tUid: 2025611165905828bf27d5be692cabd28fa2b0c2e37f1 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-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: chuguangqing --- drivers/iio/imu/inv_icm42600/inv_icm42600_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c b/drivers/iio= /imu/inv_icm42600/inv_icm42600_core.c index 63d46619ebfa..1fc4fddc2029 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c @@ -83,7 +83,7 @@ const struct regmap_config inv_icm42600_regmap_config =3D= { .num_ranges =3D ARRAY_SIZE(inv_icm42600_regmap_ranges), .volatile_table =3D inv_icm42600_regmap_volatile_accesses, .rd_noinc_table =3D inv_icm42600_regmap_rd_noinc_accesses, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; EXPORT_SYMBOL_NS_GPL(inv_icm42600_regmap_config, "IIO_ICM42600"); =20 @@ -97,7 +97,7 @@ const struct regmap_config inv_icm42600_spi_regmap_config= =3D { .num_ranges =3D ARRAY_SIZE(inv_icm42600_regmap_ranges), .volatile_table =3D inv_icm42600_regmap_volatile_accesses, .rd_noinc_table =3D inv_icm42600_regmap_rd_noinc_accesses, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .use_single_write =3D true, }; EXPORT_SYMBOL_NS_GPL(inv_icm42600_spi_regmap_config, "IIO_ICM42600"); --=20 2.31.1 From nobody Mon Feb 9 12:52:32 2026 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 1425A25487A; Wed, 11 Jun 2025 08:59:10 +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=1749632356; cv=none; b=EqfQGh7EvwF2FjsN2p9CCaV217pHjR6wsZlWnkGzWm+3S9NjV5l489Wnfi/6z839VO1c9u58Zt30tXwpsFmkoxs72LEXqtyLTOVmgDbesmZXDfMMRBwJuqKf5kvY+VGIRHPKu3pgTLmPjpQZyKv4NWqHVSBuXcluROEOZb4HjiA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632356; c=relaxed/simple; bh=m4CWXoIJxXj7A/0m38Ur8raypeBQWVZqSo0YDfBdzU8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=N1ObJzzgAKTEc9ltmyfrR1tmkdCeuNhZZowDZATLH/+s1I0HbEI+uDKRHQ6HX8PD/ivVGGjbgi+iy7JbyZoSQD35Wa2JzFHQvLkIPXODuqTZVy48ENaAI0xUkzBLc2KUgZh3CqQcYQdlvuZ3z2LFsjkCMu2zvWG8WpipRQitAYA= 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 jtjnmail201609.home.langchao.com by ssh248.corpemail.net ((D)) with ASMTP (SSL) id 202506111659049660; Wed, 11 Jun 2025 16:59:04 +0800 Received: from jtjnmail201607.home.langchao.com (10.100.2.7) by jtjnmail201609.home.langchao.com (10.100.2.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Jun 2025 16:59:05 +0800 Received: from localhost.localdomain.com (10.94.12.179) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.39; Wed, 11 Jun 2025 16:59:04 +0800 From: chuguangqing To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Jean-Baptiste Maneyrol CC: , , chuguangqing Subject: [PATCH 07/10] iio: imu: bno055: convert to use maple tree register cache Date: Wed, 11 Jun 2025 16:58:35 +0800 Message-ID: <20250611085838.4761-8-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250611085838.4761-1-chuguangqing@inspur.com> References: <20250611085838.4761-1-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tUid: 2025611165904fd726e4cf646a75730e4f4d479ba992d 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-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: chuguangqing --- drivers/iio/imu/bno055/bno055.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/imu/bno055/bno055.c b/drivers/iio/imu/bno055/bno05= 5.c index 597c402b98de..3f4c18dc3ee9 100644 --- a/drivers/iio/imu/bno055/bno055.c +++ b/drivers/iio/imu/bno055/bno055.c @@ -290,7 +290,7 @@ const struct regmap_config bno055_regmap_config =3D { .max_register =3D 0x80 * 2, .writeable_reg =3D bno055_regmap_writeable, .readable_reg =3D bno055_regmap_readable, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; EXPORT_SYMBOL_NS_GPL(bno055_regmap_config, "IIO_BNO055"); =20 --=20 2.31.1 From nobody Mon Feb 9 12:52:32 2026 Received: from unicom146.biz-email.net (unicom146.biz-email.net [210.51.26.146]) (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 6FBC525EFB7; Wed, 11 Jun 2025 09:00:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.146 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632425; cv=none; b=rgii4xFtCkjeJfqqNT7JpdmLIrOWzstXpH2agWV+63Eyo2qE3Q2iMhy7hYfNHhh8O+V5eWXQ4C/V3HLao1zYijQYSqhSC1js4V6iBf/jCtvJ43rNPtJ17y8xbmZZNe4NFGMUSuNkAWAXeOQ02GAAORe5ooieFh4jC2z5YHmr73Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632425; c=relaxed/simple; bh=a89/HWk26JsP/OkXtj4TeeGsaSJmnp0S87artYYyg7g=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=q4dvZ3Vd3qoS02xsNVm+lWBQm5HYcItnOgFdHX75xR6HTaE7yTerbiXY6YA28WzdWxvxStjdEn92RDUurg2OHqHQQecknGUALi+i31UVLN8n4CxRIX/nDMViKPx7MrOQq5j+4U/xeRQG++Kq1rlhH8Ip7fC9rbJQZMORW9vNHYc= 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.146 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 jtjnmail201605.home.langchao.com by unicom146.biz-email.net ((D)) with ASMTP (SSL) id 202506111659062061; Wed, 11 Jun 2025 16:59:06 +0800 Received: from jtjnmail201607.home.langchao.com (10.100.2.7) by jtjnmail201605.home.langchao.com (10.100.2.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Jun 2025 16:59:05 +0800 Received: from localhost.localdomain.com (10.94.12.179) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.39; Wed, 11 Jun 2025 16:59:05 +0800 From: chuguangqing To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Jean-Baptiste Maneyrol CC: , , chuguangqing Subject: [PATCH 08/10] iio: light: isl29028: convert to use maple tree register cache Date: Wed, 11 Jun 2025 16:58:36 +0800 Message-ID: <20250611085838.4761-9-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250611085838.4761-1-chuguangqing@inspur.com> References: <20250611085838.4761-1-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tUid: 202561116590618cd26c374da5421bc4e811ef719d038 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-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: chuguangqing --- drivers/iio/light/isl29028.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/light/isl29028.c b/drivers/iio/light/isl29028.c index 609ebf0f7313..0e4284823d44 100644 --- a/drivers/iio/light/isl29028.c +++ b/drivers/iio/light/isl29028.c @@ -562,7 +562,7 @@ static const struct regmap_config isl29028_regmap_confi= g =3D { .volatile_reg =3D isl29028_is_volatile_reg, .max_register =3D ISL29028_NUM_REGS - 1, .num_reg_defaults_raw =3D ISL29028_NUM_REGS, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int isl29028_probe(struct i2c_client *client) --=20 2.31.1 From nobody Mon Feb 9 12:52:32 2026 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 E0A8125334B; Wed, 11 Jun 2025 08:59: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=1749632362; cv=none; b=ImHuydxHyn4kTYdpIgMXnBkkCEW/Gg3OIcsnA8PpORK856wGXnXrTiH7H0D+CzQhVGj7da+wC2XzJH4pV4ra3G6bqJUM1R6v26TzOYcPaWCDocO1txdtpZHxqdQnswybPU0Jdt89z0o6NPRvgdyEtUNMhywpKe6ZUPi1FV+LMM4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632362; c=relaxed/simple; bh=1fWCwnlSXdLuAVukdT4G6sSI6gWBplyZTWeB9QlGs/Q=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jnLB3tmQ2WIs2M4DnRlarCesd/xmXc/EfVNqeMoT4jzOEg+LHvivHw+lvo10D5KyrAAwtNi1iaEC+EAJIXHHOXLUZwxh0GNjsL6qMFvmO3urPoDCy+m53LuUHeYWoRQOdrw/xOhBdgBCDseOMbJQB3wqTGz16NK4ihXMwr/g1ro= 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 jtjnmail201608.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202506111659061076; Wed, 11 Jun 2025 16:59:06 +0800 Received: from jtjnmail201607.home.langchao.com (10.100.2.7) by jtjnmail201608.home.langchao.com (10.100.2.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Jun 2025 16:59:05 +0800 Received: from localhost.localdomain.com (10.94.12.179) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.39; Wed, 11 Jun 2025 16:59:05 +0800 From: chuguangqing To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Jean-Baptiste Maneyrol CC: , , chuguangqing Subject: [PATCH 09/10] iio: light: ltr501: convert to use maple tree register cache Date: Wed, 11 Jun 2025 16:58:37 +0800 Message-ID: <20250611085838.4761-10-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250611085838.4761-1-chuguangqing@inspur.com> References: <20250611085838.4761-1-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tUid: 202561116590618cd26c374da5421bc4e811ef719d038 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-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: chuguangqing --- drivers/iio/light/ltr501.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/light/ltr501.c index 8d8051cf6927..e293707f4f7d 100644 --- a/drivers/iio/light/ltr501.c +++ b/drivers/iio/light/ltr501.c @@ -1408,7 +1408,7 @@ static const struct regmap_config ltr501_regmap_confi= g =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D LTR501_MAX_REG, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .volatile_reg =3D ltr501_is_volatile_reg, }; =20 --=20 2.31.1 From nobody Mon Feb 9 12:52:32 2026 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 5FA5D25334B; Wed, 11 Jun 2025 08:59:24 +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=1749632367; cv=none; b=CfeP5TkBSN0pAtB60NktioVsfe5LhAK3efQGszPGRdRcpiwFoQ57UM6ta3om5IIM2E49JeHnFYj/kymgF0VkADq4ntZYmj5y93HWhd1GtNOTifgF0R7rjtyglR25kXTuFERuoGlBO5F+gfGslWkAlX9fSdWFXW18tohdSnaERl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749632367; c=relaxed/simple; bh=+EWtSJ8MP+4Yp1bq9//XPWjvZZuVOQu5/60e0t7FJNM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MXSV/uJz3YZJFfVC23VKQ1G/SILSmupEgBN3gBky4M+emXl31c3q6NPj87jNnMk2qGzK8mO3RJGvtWRa1i9p8KIvqXg3GqZSptfVrRcnNObuIrmHBpDUpot1gxlf8r3S+2+FM7vRGgQnzCnTKc2nYoMf7QoKiVp6mswaknkCVtQ= 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 jtjnmail201606.home.langchao.com by unicom145.biz-email.net ((D)) with ASMTP (SSL) id 202506111659061079; Wed, 11 Jun 2025 16:59:06 +0800 Received: from jtjnmail201607.home.langchao.com (10.100.2.7) by jtjnmail201606.home.langchao.com (10.100.2.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Jun 2025 16:59:05 +0800 Received: from localhost.localdomain.com (10.94.12.179) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.39; Wed, 11 Jun 2025 16:59:05 +0800 From: chuguangqing To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Jean-Baptiste Maneyrol CC: , , chuguangqing Subject: [PATCH 10/10] iio: light: opt4060: convert to use maple tree register cache Date: Wed, 11 Jun 2025 16:58:38 +0800 Message-ID: <20250611085838.4761-11-chuguangqing@inspur.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250611085838.4761-1-chuguangqing@inspur.com> References: <20250611085838.4761-1-chuguangqing@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tUid: 202561116590618cd26c374da5421bc4e811ef719d038 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-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: chuguangqing --- drivers/iio/light/opt4060.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/light/opt4060.c b/drivers/iio/light/opt4060.c index f4085020e03e..88ed85cf1844 100644 --- a/drivers/iio/light/opt4060.c +++ b/drivers/iio/light/opt4060.c @@ -1063,7 +1063,7 @@ static const struct regmap_config opt4060_regmap_conf= ig =3D { .name =3D "opt4060", .reg_bits =3D 8, .val_bits =3D 16, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .max_register =3D OPT4060_DEVICE_ID, .readable_reg =3D opt4060_readable_reg, .writeable_reg =3D opt4060_writable_reg, --=20 2.31.1