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: Bo Liu <liubo03@inspur.com> Link: https://lore.kernel.org/r/20240202064336.39138-1-liubo03@inspur.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
c41dfb0dfb
commit
3c974cdce8
@ -464,7 +464,7 @@ static struct regmap_config regcfg = {
|
||||
.val_bits = 16,
|
||||
.max_register = 0xee,
|
||||
.reg_stride = 2,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.val_format_endian = REGMAP_ENDIAN_LITTLE,
|
||||
.readable_reg = encx24j600_regmap_readable,
|
||||
.writeable_reg = encx24j600_regmap_writeable,
|
||||
@ -485,7 +485,7 @@ static struct regmap_config phycfg = {
|
||||
.reg_bits = 8,
|
||||
.val_bits = 16,
|
||||
.max_register = 0x1f,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
.cache_type = REGCACHE_MAPLE,
|
||||
.val_format_endian = REGMAP_ENDIAN_LITTLE,
|
||||
.readable_reg = encx24j600_phymap_readable,
|
||||
.writeable_reg = encx24j600_phymap_writeable,
|
||||
|
Loading…
x
Reference in New Issue
Block a user