[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190106083754.6004-12-afaerber@suse.de>
Date: Sun, 6 Jan 2019 09:37:54 +0100
From: Andreas Färber <afaerber@...e.de>
To: linux-lpwan@...ts.infradead.org
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Andreas Färber <afaerber@...e.de>,
Ben Whitten <ben.whitten@...il.com>,
"David S. Miller" <davem@...emloft.net>
Subject: [PATCH lora-next 11/11] net: lora: sx130x: Enable regmap caching
To fix performance penalties compared to pre-regmap field code,
enable caching.
Note: This has been tested to not regress on spi-gpio, with no
improvement on spi-sun6i for clk_prepare() locking issue.
Cc: Ben Whitten <ben.whitten@...il.com>
Signed-off-by: Andreas Färber <afaerber@...e.de>
---
drivers/net/lora/sx130x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/lora/sx130x.c b/drivers/net/lora/sx130x.c
index 76ce072a540a..2fb18d0c9db5 100644
--- a/drivers/net/lora/sx130x.c
+++ b/drivers/net/lora/sx130x.c
@@ -162,7 +162,7 @@ const struct regmap_config sx130x_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
- .cache_type = REGCACHE_NONE,
+ .cache_type = REGCACHE_RBTREE,
.disable_locking = true,
.read_flag_mask = 0,
--
2.16.4
Powered by blists - more mailing lists