[PATCH lora-next 06/11] net: lora: sx130x: Force regmap field write before sleep

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


Ensure timing is as expected by forcing a register write before waiting on
its outcome.

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 457f2396d9ee..bc2d4b1165d8 100644
--- a/drivers/net/lora/sx130x.c
+++ b/drivers/net/lora/sx130x.c
@@ -692,7 +692,7 @@ int sx130x_probe(struct device *dev)
return ret;
}

- ret = sx130x_field_write(priv, F_RADIO_B_EN, 1);
+ ret = sx130x_field_force_write(priv, F_RADIO_B_EN, 1);
if (ret) {
dev_err(dev, "radio B enable failed (%d)\n", ret);
return ret;
--
2.16.4