Message ID | 20190106083754.6004-12-afaerber@suse.de |
---|---|
State | New |
Headers | show |
Series | net: lora: sx130x: Fixes for enabling regcache | expand |
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,
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