lkml.org 
[lkml]   [2019]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH lora-next 10/11] net: lora: sx130x: Mark MCU_CTRL register as volatile
Date
For reasons as of yet unknown, this is necessary to unbreak ARB firmware
version check.

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, 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
\
 
 \ /
  Last update: 2019-01-06 09:38    [W:0.051 / U:0.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site