[PATCH lora-next 03/11] net: lora: sx130x: add CHRS to volatile register list
From: Ben Whitten
Date: Mon Jan 28 2019 - 11:13:55 EST
From: Ben Whitten <ben.whitten@xxxxxxxxx>
The CHRS register is used in transactions to the MCU within the SX130x,
we need to always write to it.
Signed-off-by: Ben Whitten <ben.whitten@xxxxxxxxx>
---
drivers/net/lora/sx130x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/lora/sx130x.c b/drivers/net/lora/sx130x.c
index 70cfb4532b51..529ca6622878 100644
--- a/drivers/net/lora/sx130x.c
+++ b/drivers/net/lora/sx130x.c
@@ -134,6 +134,7 @@ static bool sx130x_volatile_reg(struct device *dev, unsigned int reg)
case SX1301_MPD:
case SX1301_AGCSTS:
+ case SX1301_CHRS:
case SX1301_MCU_CTRL:
case SX1301_RADIO_A_SPI_DATA_RB:
--
2.17.1