lkml.org 
[lkml]   [2019]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH lora-next 11/11] net: lora: sx130x: Enable regmap caching
Date
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(-)

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
\
 
 \ /
  Last update: 2019-01-06 09:39    [W:0.049 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site