diff mbox series

[lora-next,11/11] net: lora: sx130x: Enable regmap caching

Message ID 20190106083754.6004-12-afaerber@suse.de
State New
Headers show
Series net: lora: sx130x: Fixes for enabling regcache | expand

Commit Message

Andreas Färber Jan. 6, 2019, 8:37 a.m. UTC
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@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>

---
 drivers/net/lora/sx130x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.16.4
diff mbox series

Patch

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,