Commit 3c974cdc authored by Bo Liu's avatar Bo Liu Committed by Paolo Abeni

net: encx24j600: convert to use maple tree register cache

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: default avatarBo Liu <liubo03@inspur.com>
Link: https://lore.kernel.org/r/20240202064336.39138-1-liubo03@inspur.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent c41dfb0d
...@@ -464,7 +464,7 @@ static struct regmap_config regcfg = { ...@@ -464,7 +464,7 @@ static struct regmap_config regcfg = {
.val_bits = 16, .val_bits = 16,
.max_register = 0xee, .max_register = 0xee,
.reg_stride = 2, .reg_stride = 2,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
.val_format_endian = REGMAP_ENDIAN_LITTLE, .val_format_endian = REGMAP_ENDIAN_LITTLE,
.readable_reg = encx24j600_regmap_readable, .readable_reg = encx24j600_regmap_readable,
.writeable_reg = encx24j600_regmap_writeable, .writeable_reg = encx24j600_regmap_writeable,
...@@ -485,7 +485,7 @@ static struct regmap_config phycfg = { ...@@ -485,7 +485,7 @@ static struct regmap_config phycfg = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 16, .val_bits = 16,
.max_register = 0x1f, .max_register = 0x1f,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_MAPLE,
.val_format_endian = REGMAP_ENDIAN_LITTLE, .val_format_endian = REGMAP_ENDIAN_LITTLE,
.readable_reg = encx24j600_phymap_readable, .readable_reg = encx24j600_phymap_readable,
.writeable_reg = encx24j600_phymap_writeable, .writeable_reg = encx24j600_phymap_writeable,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment