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 09/11] net: lora: sx130x: Mark AGCSTS register as volatile
Date
AGC status register reads should not be cached.

Sort the volatile registers by number while at it.

Cc: Ben Whitten <ben.whitten@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
drivers/net/lora/sx130x.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/lora/sx130x.c b/drivers/net/lora/sx130x.c
index 0a79548a7480..8bdd343a273f 100644
--- a/drivers/net/lora/sx130x.c
+++ b/drivers/net/lora/sx130x.c
@@ -123,11 +123,13 @@ static const struct regmap_range_cfg sx130x_regmap_ranges[] = {
static bool sx130x_volatile_reg(struct device *dev, unsigned int reg)
{
switch (reg) {
- case SX1301_DBG_AGC_MCU_RAM_DATA:
- case SX1301_DBG_ARB_MCU_RAM_DATA:
case SX1301_MPD:
+ case SX1301_AGCSTS:
+
case SX1301_RADIO_A_SPI_DATA_RB:
case SX1301_RADIO_B_SPI_DATA_RB:
+ case SX1301_DBG_ARB_MCU_RAM_DATA:
+ case SX1301_DBG_AGC_MCU_RAM_DATA:
return true;
default:
return false;
--
2.16.4
\
 
 \ /
  Last update: 2019-01-06 09:39    [W:0.045 / U:3.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site