]> www.infradead.org Git - users/hch/dma-mapping.git/commitdiff
net: ieee802154: at86rf230: convert to use maple tree register cache
authorBo Liu <liubo03@inspur.com>
Fri, 2 Feb 2024 06:45:12 +0000 (01:45 -0500)
committerStefan Schmidt <stefan@datenfreihafen.org>
Mon, 26 Feb 2024 20:40:31 +0000 (21:40 +0100)
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>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Message-ID: <20240202064512.39259-1-liubo03@inspur.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/at86rf230.c

index 164c7f605af5e39f8a7b6a6d4a6cb1b739d55c4c..6212164ffb36f1cdf5685010d9357bf0e0007ed1 100644 (file)
@@ -316,7 +316,7 @@ static const struct regmap_config at86rf230_regmap_spi_config = {
        .val_bits = 8,
        .write_flag_mask = CMD_REG | CMD_WRITE,
        .read_flag_mask = CMD_REG,
-       .cache_type = REGCACHE_RBTREE,
+       .cache_type = REGCACHE_MAPLE,
        .max_register = AT86RF2XX_NUMREGS,
        .writeable_reg = at86rf230_reg_writeable,
        .readable_reg = at86rf230_reg_readable,