[PATCH lora-next 09/11] net: lora: sx130x: Mark AGCSTS register as volatile
From: Andreas FÃrber
Date: Sun Jan 06 2019 - 03:38:33 EST
AGC status register reads should not be cached.
Sort the volatile registers by number while at it.
Cc: Ben Whitten <ben.whitten@xxxxxxxxx>
Signed-off-by: Andreas FÃrber <afaerber@xxxxxxx>
---
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