[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190106083754.6004-7-afaerber@suse.de>
Date: Sun, 6 Jan 2019 09:37:49 +0100
From: Andreas Färber <afaerber@...e.de>
To: linux-lpwan@...ts.infradead.org
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Andreas Färber <afaerber@...e.de>,
Ben Whitten <ben.whitten@...il.com>,
"David S. Miller" <davem@...emloft.net>
Subject: [PATCH lora-next 06/11] net: lora: sx130x: Force regmap field write before sleep
Ensure timing is as expected by forcing a register write before waiting on
its outcome.
Cc: Ben Whitten <ben.whitten@...il.com>
Signed-off-by: Andreas Färber <afaerber@...e.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 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
Powered by blists - more mailing lists