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

From: Andreas FÃrber
Date: Sun Jan 06 2019 - 03:38:23 EST


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@xxxxxxxxx>
Signed-off-by: Andreas FÃrber <afaerber@xxxxxxx>
---
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