[PATCH lora-next 10/11] net: lora: sx130x: Mark MCU_CTRL register as volatile

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


For reasons as of yet unknown, this is necessary to unbreak ARB firmware
version check.

Cc: Ben Whitten <ben.whitten@xxxxxxxxx>
Signed-off-by: Andreas FÃrber <afaerber@xxxxxxx>
---
drivers/net/lora/sx130x.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/net/lora/sx130x.c b/drivers/net/lora/sx130x.c
index 8bdd343a273f..76ce072a540a 100644
--- a/drivers/net/lora/sx130x.c
+++ b/drivers/net/lora/sx130x.c
@@ -126,6 +126,8 @@ static bool sx130x_volatile_reg(struct device *dev, unsigned int reg)
case SX1301_MPD:
case SX1301_AGCSTS:

+ case SX1301_MCU_CTRL:
+
case SX1301_RADIO_A_SPI_DATA_RB:
case SX1301_RADIO_B_SPI_DATA_RB:
case SX1301_DBG_ARB_MCU_RAM_DATA:
--
2.16.4