public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: stable@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	patches@lists.linux.dev,
	Jonathan Cameron <Jonathan.Cameron@huawei.com>,
	Marcelo Schmitt <marcelo.schmitt1@gmail.com>,
	Sasha Levin <sashal@kernel.org>
Subject: [PATCH 5.10 071/161] staging:iio:adc:ad7280a: Register define cleanup.
Date: Wed,  4 Feb 2026 15:38:54 +0100	[thread overview]
Message-ID: <20260204143854.310914610@linuxfoundation.org> (raw)
In-Reply-To: <20260204143851.755002596@linuxfoundation.org>

5.10-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

[ Upstream commit 4c59aabd9a93d8f867d9f6aa0407cc6a7db47fa5 ]

1. Postfix register addresses with _REG to distinguish them from
   fields within the registers
2. Switch to using FIELD_PREP and masks to aid readability.
3. Shorten a few defines to make the lines remain a sensible length.
4. Fix an issue whether where an CTRL_LB field is set in CTRL_HB.
5. Fix wrong AUX1_3_4 which should be AUX_1_3_5 according to
   table 14 in the datasheet.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Link: https://lore.kernel.org/r/20220206190328.333093-3-jic23@kernel.org
Stable-dep-of: 6b39824ac4c1 ("iio: adc: ad7280a: handle spi_setup() errors in probe()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/staging/iio/adc/ad7280a.c | 285 ++++++++++++++++--------------
 1 file changed, 154 insertions(+), 131 deletions(-)

diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c
index 20183b2ea1279..0f64b2fbfa7aa 100644
--- a/drivers/staging/iio/adc/ad7280a.c
+++ b/drivers/staging/iio/adc/ad7280a.c
@@ -11,6 +11,7 @@
 #include <linux/slab.h>
 #include <linux/sysfs.h>
 #include <linux/spi/spi.h>
+#include <linux/bitfield.h>
 #include <linux/err.h>
 #include <linux/delay.h>
 #include <linux/interrupt.h>
@@ -23,78 +24,86 @@
 #include "ad7280a.h"
 
 /* Registers */
-#define AD7280A_CELL_VOLTAGE_1		0x0  /* D11 to D0, Read only */
-#define AD7280A_CELL_VOLTAGE_2		0x1  /* D11 to D0, Read only */
-#define AD7280A_CELL_VOLTAGE_3		0x2  /* D11 to D0, Read only */
-#define AD7280A_CELL_VOLTAGE_4		0x3  /* D11 to D0, Read only */
-#define AD7280A_CELL_VOLTAGE_5		0x4  /* D11 to D0, Read only */
-#define AD7280A_CELL_VOLTAGE_6		0x5  /* D11 to D0, Read only */
-#define AD7280A_AUX_ADC_1		0x6  /* D11 to D0, Read only */
-#define AD7280A_AUX_ADC_2		0x7  /* D11 to D0, Read only */
-#define AD7280A_AUX_ADC_3		0x8  /* D11 to D0, Read only */
-#define AD7280A_AUX_ADC_4		0x9  /* D11 to D0, Read only */
-#define AD7280A_AUX_ADC_5		0xA  /* D11 to D0, Read only */
-#define AD7280A_AUX_ADC_6		0xB  /* D11 to D0, Read only */
-#define AD7280A_SELF_TEST		0xC  /* D11 to D0, Read only */
-#define AD7280A_CONTROL_HB		0xD  /* D15 to D8, Read/write */
-#define AD7280A_CONTROL_LB		0xE  /* D7 to D0, Read/write */
-#define AD7280A_CELL_OVERVOLTAGE	0xF  /* D7 to D0, Read/write */
-#define AD7280A_CELL_UNDERVOLTAGE	0x10 /* D7 to D0, Read/write */
-#define AD7280A_AUX_ADC_OVERVOLTAGE	0x11 /* D7 to D0, Read/write */
-#define AD7280A_AUX_ADC_UNDERVOLTAGE	0x12 /* D7 to D0, Read/write */
-#define AD7280A_ALERT			0x13 /* D7 to D0, Read/write */
-#define AD7280A_CELL_BALANCE		0x14 /* D7 to D0, Read/write */
-#define AD7280A_CB1_TIMER		0x15 /* D7 to D0, Read/write */
-#define AD7280A_CB2_TIMER		0x16 /* D7 to D0, Read/write */
-#define AD7280A_CB3_TIMER		0x17 /* D7 to D0, Read/write */
-#define AD7280A_CB4_TIMER		0x18 /* D7 to D0, Read/write */
-#define AD7280A_CB5_TIMER		0x19 /* D7 to D0, Read/write */
-#define AD7280A_CB6_TIMER		0x1A /* D7 to D0, Read/write */
-#define AD7280A_PD_TIMER		0x1B /* D7 to D0, Read/write */
-#define AD7280A_READ			0x1C /* D7 to D0, Read/write */
-#define AD7280A_CNVST_CONTROL		0x1D /* D7 to D0, Read/write */
-
-/* Bits and Masks */
-#define AD7280A_CTRL_HB_CONV_INPUT_ALL			0
-#define AD7280A_CTRL_HB_CONV_INPUT_6CELL_AUX1_3_4	BIT(6)
-#define AD7280A_CTRL_HB_CONV_INPUT_6CELL		BIT(7)
-#define AD7280A_CTRL_HB_CONV_INPUT_SELF_TEST		(BIT(7) | BIT(6))
-#define AD7280A_CTRL_HB_CONV_RES_READ_ALL		0
-#define AD7280A_CTRL_HB_CONV_RES_READ_6CELL_AUX1_3_4	BIT(4)
-#define AD7280A_CTRL_HB_CONV_RES_READ_6CELL		BIT(5)
-#define AD7280A_CTRL_HB_CONV_RES_READ_NO		(BIT(5) | BIT(4))
-#define AD7280A_CTRL_HB_CONV_START_CNVST		0
-#define AD7280A_CTRL_HB_CONV_START_CS			BIT(3)
-#define AD7280A_CTRL_HB_CONV_AVG_DIS			0
-#define AD7280A_CTRL_HB_CONV_AVG_2			BIT(1)
-#define AD7280A_CTRL_HB_CONV_AVG_4			BIT(2)
-#define AD7280A_CTRL_HB_CONV_AVG_8			(BIT(2) | BIT(1))
-#define AD7280A_CTRL_HB_CONV_AVG(x)			((x) << 1)
-#define AD7280A_CTRL_HB_PWRDN_SW			BIT(0)
-
-#define AD7280A_CTRL_LB_SWRST				BIT(7)
-#define AD7280A_CTRL_LB_ACQ_TIME_400ns			0
-#define AD7280A_CTRL_LB_ACQ_TIME_800ns			BIT(5)
-#define AD7280A_CTRL_LB_ACQ_TIME_1200ns			BIT(6)
-#define AD7280A_CTRL_LB_ACQ_TIME_1600ns			(BIT(6) | BIT(5))
-#define AD7280A_CTRL_LB_ACQ_TIME(x)			((x) << 5)
-#define AD7280A_CTRL_LB_MUST_SET			BIT(4)
-#define AD7280A_CTRL_LB_THERMISTOR_EN			BIT(3)
-#define AD7280A_CTRL_LB_LOCK_DEV_ADDR			BIT(2)
-#define AD7280A_CTRL_LB_INC_DEV_ADDR			BIT(1)
-#define AD7280A_CTRL_LB_DAISY_CHAIN_RB_EN		BIT(0)
-
-#define AD7280A_ALERT_GEN_STATIC_HIGH			BIT(6)
-#define AD7280A_ALERT_RELAY_SIG_CHAIN_DOWN		(BIT(7) | BIT(6))
 
+#define AD7280A_CELL_VOLTAGE_1_REG		0x0  /* D11 to D0, Read only */
+#define AD7280A_CELL_VOLTAGE_2_REG		0x1  /* D11 to D0, Read only */
+#define AD7280A_CELL_VOLTAGE_3_REG		0x2  /* D11 to D0, Read only */
+#define AD7280A_CELL_VOLTAGE_4_REG		0x3  /* D11 to D0, Read only */
+#define AD7280A_CELL_VOLTAGE_5_REG		0x4  /* D11 to D0, Read only */
+#define AD7280A_CELL_VOLTAGE_6_REG		0x5  /* D11 to D0, Read only */
+#define AD7280A_AUX_ADC_1_REG			0x6  /* D11 to D0, Read only */
+#define AD7280A_AUX_ADC_2_REG			0x7  /* D11 to D0, Read only */
+#define AD7280A_AUX_ADC_3_REG			0x8  /* D11 to D0, Read only */
+#define AD7280A_AUX_ADC_4_REG			0x9  /* D11 to D0, Read only */
+#define AD7280A_AUX_ADC_5_REG			0xA  /* D11 to D0, Read only */
+#define AD7280A_AUX_ADC_6_REG			0xB  /* D11 to D0, Read only */
+#define AD7280A_SELF_TEST_REG			0xC  /* D11 to D0, Read only */
+
+#define AD7280A_CTRL_HB_REG			0xD  /* D15 to D8, Read/write */
+#define   AD7280A_CTRL_HB_CONV_INPUT_MSK		GENMASK(7, 6)
+#define     AD7280A_CTRL_HB_CONV_INPUT_ALL			0
+#define     AD7280A_CTRL_HB_CONV_INPUT_6CELL_AUX1_3_5		1
+#define     AD7280A_CTRL_HB_CONV_INPUT_6CELL			2
+#define     AD7280A_CTRL_HB_CONV_INPUT_SELF_TEST		3
+#define   AD7280A_CTRL_HB_CONV_RREAD_MSK		GENMASK(5, 4)
+#define     AD7280A_CTRL_HB_CONV_RREAD_ALL			0
+#define     AD7280A_CTRL_HB_CONV_RREAD_6CELL_AUX1_3_5		1
+#define     AD7280A_CTRL_HB_CONV_RREAD_6CELL			2
+#define     AD7280A_CTRL_HB_CONV_RREAD_NO		        3
+#define   AD7280A_CTRL_HB_CONV_START_MSK		BIT(3)
+#define     AD7280A_CTRL_HB_CONV_START_CNVST			0
+#define     AD7280A_CTRL_HB_CONV_START_CS			1
+#define   AD7280A_CTRL_HB_CONV_AVG_MSK			GENMASK(2, 1)
+#define     AD7280A_CTRL_HB_CONV_AVG_DIS			0
+#define     AD7280A_CTRL_HB_CONV_AVG_2				1
+#define     AD7280A_CTRL_HB_CONV_AVG_4			        2
+#define     AD7280A_CTRL_HB_CONV_AVG_8			        3
+#define   AD7280A_CTRL_HB_PWRDN_SW			BIT(0)
+
+#define AD7280A_CTRL_LB_REG			0xE  /* D7 to D0, Read/write */
+#define   AD7280A_CTRL_LB_SWRST_MSK			BIT(7)
+#define   AD7280A_CTRL_LB_ACQ_TIME_MSK			GENMASK(6, 5)
+#define     AD7280A_CTRL_LB_ACQ_TIME_400ns			0
+#define     AD7280A_CTRL_LB_ACQ_TIME_800ns			1
+#define     AD7280A_CTRL_LB_ACQ_TIME_1200ns			2
+#define     AD7280A_CTRL_LB_ACQ_TIME_1600ns			3
+#define   AD7280A_CTRL_LB_MUST_SET			BIT(4)
+#define   AD7280A_CTRL_LB_THERMISTOR_MSK		BIT(3)
+#define   AD7280A_CTRL_LB_LOCK_DEV_ADDR_MSK		BIT(2)
+#define   AD7280A_CTRL_LB_INC_DEV_ADDR_MSK		BIT(1)
+#define   AD7280A_CTRL_LB_DAISY_CHAIN_RB_MSK		BIT(0)
+
+#define AD7280A_CELL_OVERVOLTAGE_REG		0xF  /* D7 to D0, Read/write */
+#define AD7280A_CELL_UNDERVOLTAGE_REG		0x10 /* D7 to D0, Read/write */
+#define AD7280A_AUX_ADC_OVERVOLTAGE_REG		0x11 /* D7 to D0, Read/write */
+#define AD7280A_AUX_ADC_UNDERVOLTAGE_REG	0x12 /* D7 to D0, Read/write */
+
+#define AD7280A_ALERT_REG			0x13 /* D7 to D0, Read/write */
+#define   AD7280A_ALERT_GEN_STATIC_HIGH			BIT(6)
+#define   AD7280A_ALERT_RELAY_SIG_CHAIN_DOWN		(BIT(7) | BIT(6))
+
+#define AD7280A_CELL_BALANCE_REG		0x14 /* D7 to D0, Read/write */
+#define AD7280A_CB1_TIMER_REG			0x15 /* D7 to D0, Read/write */
+#define  AD7280A_CB_TIMER_VAL_MSK			GENMASK(7, 3)
+#define AD7280A_CB2_TIMER_REG			0x16 /* D7 to D0, Read/write */
+#define AD7280A_CB3_TIMER_REG			0x17 /* D7 to D0, Read/write */
+#define AD7280A_CB4_TIMER_REG			0x18 /* D7 to D0, Read/write */
+#define AD7280A_CB5_TIMER_REG			0x19 /* D7 to D0, Read/write */
+#define AD7280A_CB6_TIMER_REG			0x1A /* D7 to D0, Read/write */
+#define AD7280A_PD_TIMER_REG			0x1B /* D7 to D0, Read/write */
+#define AD7280A_READ_REG			0x1C /* D7 to D0, Read/write */
+#define   AD7280A_READ_ADDR_MSK				GENMASK(7, 2)
+#define AD7280A_CNVST_CTRL_REG			0x1D /* D7 to D0, Read/write */
+
+/* Magic value used to indicate this special case */
 #define AD7280A_ALL_CELLS				(0xAD << 16)
 
 #define AD7280A_MAX_SPI_CLK_HZ		700000 /* < 1MHz */
 #define AD7280A_MAX_CHAIN		8
 #define AD7280A_CELLS_PER_DEV		6
 #define AD7280A_BITS			12
-#define AD7280A_NUM_CH			(AD7280A_AUX_ADC_6 - \
-					AD7280A_CELL_VOLTAGE_1 + 1)
+#define AD7280A_NUM_CH			(AD7280A_AUX_ADC_6_REG - \
+					AD7280A_CELL_VOLTAGE_1_REG + 1)
 
 #define AD7280A_CALC_VOLTAGE_CHAN_NUM(d, c) (((d) * AD7280A_CELLS_PER_DEV) + \
 					     (c))
@@ -222,23 +231,28 @@ static int ad7280_read(struct ad7280_state *st, unsigned int devaddr,
 	unsigned int tmp;
 
 	/* turns off the read operation on all parts */
-	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CONTROL_HB, 1,
-			   AD7280A_CTRL_HB_CONV_INPUT_ALL |
-			   AD7280A_CTRL_HB_CONV_RES_READ_NO |
+	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CTRL_HB_REG, 1,
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_INPUT_MSK,
+				      AD7280A_CTRL_HB_CONV_INPUT_ALL) |
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_RREAD_MSK,
+				      AD7280A_CTRL_HB_CONV_RREAD_NO) |
 			   st->ctrl_hb);
 	if (ret)
 		return ret;
 
 	/* turns on the read operation on the addressed part */
-	ret = ad7280_write(st, devaddr, AD7280A_CONTROL_HB, 0,
-			   AD7280A_CTRL_HB_CONV_INPUT_ALL |
-			   AD7280A_CTRL_HB_CONV_RES_READ_ALL |
+	ret = ad7280_write(st, devaddr, AD7280A_CTRL_HB_REG, 0,
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_INPUT_MSK,
+				      AD7280A_CTRL_HB_CONV_INPUT_ALL) |
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_RREAD_MSK,
+				      AD7280A_CTRL_HB_CONV_RREAD_ALL) |
 			   st->ctrl_hb);
 	if (ret)
 		return ret;
 
 	/* Set register address on the part to be read from */
-	ret = ad7280_write(st, devaddr, AD7280A_READ, 0, addr << 2);
+	ret = ad7280_write(st, devaddr, AD7280A_READ_REG, 0,
+			   FIELD_PREP(AD7280A_READ_ADDR_MSK, addr));
 	if (ret)
 		return ret;
 
@@ -261,21 +275,27 @@ static int ad7280_read_channel(struct ad7280_state *st, unsigned int devaddr,
 	int ret;
 	unsigned int tmp;
 
-	ret = ad7280_write(st, devaddr, AD7280A_READ, 0, addr << 2);
+	ret = ad7280_write(st, devaddr, AD7280A_READ_REG, 0,
+			   FIELD_PREP(AD7280A_READ_ADDR_MSK, addr));
 	if (ret)
 		return ret;
 
-	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CONTROL_HB, 1,
-			   AD7280A_CTRL_HB_CONV_INPUT_ALL |
-			   AD7280A_CTRL_HB_CONV_RES_READ_NO |
+	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CTRL_HB_REG, 1,
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_INPUT_MSK,
+				      AD7280A_CTRL_HB_CONV_INPUT_ALL) |
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_RREAD_MSK,
+				      AD7280A_CTRL_HB_CONV_RREAD_NO) |
 			   st->ctrl_hb);
 	if (ret)
 		return ret;
 
-	ret = ad7280_write(st, devaddr, AD7280A_CONTROL_HB, 0,
-			   AD7280A_CTRL_HB_CONV_INPUT_ALL |
-			   AD7280A_CTRL_HB_CONV_RES_READ_ALL |
-			   AD7280A_CTRL_HB_CONV_START_CS |
+	ret = ad7280_write(st, devaddr, AD7280A_CTRL_HB_REG, 0,
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_INPUT_MSK,
+				      AD7280A_CTRL_HB_CONV_INPUT_ALL) |
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_RREAD_MSK,
+				      AD7280A_CTRL_HB_CONV_RREAD_ALL) |
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_START_MSK,
+				      AD7280A_CTRL_HB_CONV_START_CS) |
 			   st->ctrl_hb);
 	if (ret)
 		return ret;
@@ -301,15 +321,18 @@ static int ad7280_read_all_channels(struct ad7280_state *st, unsigned int cnt,
 	int i, ret;
 	unsigned int tmp, sum = 0;
 
-	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_READ, 1,
-			   AD7280A_CELL_VOLTAGE_1 << 2);
+	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_READ_REG, 1,
+			   AD7280A_CELL_VOLTAGE_1_REG << 2);
 	if (ret)
 		return ret;
 
-	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CONTROL_HB, 1,
-			   AD7280A_CTRL_HB_CONV_INPUT_ALL |
-			   AD7280A_CTRL_HB_CONV_RES_READ_ALL |
-			   AD7280A_CTRL_HB_CONV_START_CS |
+	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CTRL_HB_REG, 1,
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_INPUT_MSK,
+				      AD7280A_CTRL_HB_CONV_INPUT_ALL) |
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_RREAD_MSK,
+				      AD7280A_CTRL_HB_CONV_RREAD_ALL) |
+			   FIELD_PREP(AD7280A_CTRL_HB_CONV_START_MSK,
+				      AD7280A_CTRL_HB_CONV_START_CS) |
 			   st->ctrl_hb);
 	if (ret)
 		return ret;
@@ -327,7 +350,7 @@ static int ad7280_read_all_channels(struct ad7280_state *st, unsigned int cnt,
 		if (array)
 			array[i] = tmp;
 		/* only sum cell voltages */
-		if (((tmp >> 23) & 0xF) <= AD7280A_CELL_VOLTAGE_6)
+		if (((tmp >> 23) & 0xF) <= AD7280A_CELL_VOLTAGE_6_REG)
 			sum += ((tmp >> 11) & 0xFFF);
 	}
 
@@ -338,7 +361,7 @@ static void ad7280_sw_power_down(void *data)
 {
 	struct ad7280_state *st = data;
 
-	ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CONTROL_HB, 1,
+	ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CTRL_HB_REG, 1,
 		     AD7280A_CTRL_HB_PWRDN_SW | st->ctrl_hb);
 }
 
@@ -347,25 +370,26 @@ static int ad7280_chain_setup(struct ad7280_state *st)
 	unsigned int val, n;
 	int ret;
 
-	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CONTROL_LB, 1,
-			   AD7280A_CTRL_LB_DAISY_CHAIN_RB_EN |
-			   AD7280A_CTRL_LB_LOCK_DEV_ADDR |
+	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CTRL_LB_REG, 1,
+			   FIELD_PREP(AD7280A_CTRL_LB_DAISY_CHAIN_RB_MSK, 1) |
+			   FIELD_PREP(AD7280A_CTRL_LB_LOCK_DEV_ADDR_MSK, 1) |
 			   AD7280A_CTRL_LB_MUST_SET |
-			   AD7280A_CTRL_LB_SWRST |
+			   FIELD_PREP(AD7280A_CTRL_LB_SWRST_MSK, 1) |
 			   st->ctrl_lb);
 	if (ret)
 		return ret;
 
-	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CONTROL_LB, 1,
-			   AD7280A_CTRL_LB_DAISY_CHAIN_RB_EN |
-			   AD7280A_CTRL_LB_LOCK_DEV_ADDR |
+	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CTRL_LB_REG, 1,
+			   FIELD_PREP(AD7280A_CTRL_LB_DAISY_CHAIN_RB_MSK, 1) |
+			   FIELD_PREP(AD7280A_CTRL_LB_LOCK_DEV_ADDR_MSK, 1) |
 			   AD7280A_CTRL_LB_MUST_SET |
+			   FIELD_PREP(AD7280A_CTRL_LB_SWRST_MSK, 0) |
 			   st->ctrl_lb);
 	if (ret)
 		goto error_power_down;
 
-	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_READ, 1,
-			   AD7280A_CONTROL_LB << 2);
+	ret = ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_READ_REG, 1,
+			   FIELD_PREP(AD7280A_READ_ADDR_MSK, AD7280A_CTRL_LB_REG));
 	if (ret)
 		goto error_power_down;
 
@@ -390,7 +414,7 @@ static int ad7280_chain_setup(struct ad7280_state *st)
 	ret = -EFAULT;
 
 error_power_down:
-	ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CONTROL_HB, 1,
+	ad7280_write(st, AD7280A_DEVADDR_MASTER, AD7280A_CTRL_HB_REG, 1,
 		     AD7280A_CTRL_HB_PWRDN_SW | st->ctrl_hb);
 
 	return ret;
@@ -434,7 +458,7 @@ static ssize_t ad7280_store_balance_sw(struct device *dev,
 	else
 		st->cb_mask[devaddr] &= ~(1 << (ch + 2));
 
-	ret = ad7280_write(st, devaddr, AD7280A_CELL_BALANCE,
+	ret = ad7280_write(st, devaddr, AD7280A_CELL_BALANCE_REG,
 			   0, st->cb_mask[devaddr]);
 	mutex_unlock(&st->lock);
 
@@ -459,7 +483,7 @@ static ssize_t ad7280_show_balance_timer(struct device *dev,
 	if (ret < 0)
 		return ret;
 
-	msecs = (ret >> 3) * 71500;
+	msecs = FIELD_GET(AD7280A_CB_TIMER_VAL_MSK, ret) * 71500;
 
 	return sprintf(buf, "%u\n", msecs);
 }
@@ -486,8 +510,8 @@ static ssize_t ad7280_store_balance_timer(struct device *dev,
 
 	mutex_lock(&st->lock);
 	ret = ad7280_write(st, this_attr->address >> 8,
-			   this_attr->address & 0xFF,
-			   0, (val & 0x1F) << 3);
+			   this_attr->address & 0xFF, 0,
+			   FIELD_PREP(AD7280A_CB_TIMER_VAL_MSK, val));
 	mutex_unlock(&st->lock);
 
 	return ret ? ret : len;
@@ -559,10 +583,10 @@ static void ad7280_init_dev_channels(struct ad7280_state *st, int dev, int *cnt)
 	int addr, ch, i;
 	struct iio_chan_spec *chan;
 
-	for (ch = AD7280A_CELL_VOLTAGE_1; ch <= AD7280A_AUX_ADC_6; ch++) {
+	for (ch = AD7280A_CELL_VOLTAGE_1_REG; ch <= AD7280A_AUX_ADC_6_REG; ch++) {
 		chan = &st->channels[*cnt];
 
-		if (ch < AD7280A_AUX_ADC_1) {
+		if (ch < AD7280A_AUX_ADC_1_REG) {
 			i = AD7280A_CALC_VOLTAGE_CHAN_NUM(dev, ch);
 			ad7280_voltage_channel_init(chan, i);
 		} else {
@@ -634,7 +658,7 @@ static int ad7280_init_dev_attrs(struct ad7280_state *st, int dev, int *cnt)
 	struct iio_dev_attr *iio_attr;
 	struct device *sdev = &st->spi->dev;
 
-	for (ch = AD7280A_CELL_VOLTAGE_1; ch <= AD7280A_CELL_VOLTAGE_6; ch++) {
+	for (ch = AD7280A_CELL_VOLTAGE_1_REG; ch <= AD7280A_CELL_VOLTAGE_6_REG; ch++) {
 		iio_attr = &st->iio_attr[*cnt];
 		addr = ad7280a_devaddr(dev) << 8 | ch;
 		i = dev * AD7280A_CELLS_PER_DEV + ch;
@@ -647,7 +671,7 @@ static int ad7280_init_dev_attrs(struct ad7280_state *st, int dev, int *cnt)
 
 		(*cnt)++;
 		iio_attr = &st->iio_attr[*cnt];
-		addr = ad7280a_devaddr(dev) << 8 | (AD7280A_CB1_TIMER + ch);
+		addr = ad7280a_devaddr(dev) << 8 | (AD7280A_CB1_TIMER_REG + ch);
 
 		ret = ad7280_balance_timer_attr_init(iio_attr, sdev, addr, i);
 		if (ret < 0)
@@ -691,16 +715,16 @@ static ssize_t ad7280_read_channel_config(struct device *dev,
 	unsigned int val;
 
 	switch (this_attr->address) {
-	case AD7280A_CELL_OVERVOLTAGE:
+	case AD7280A_CELL_OVERVOLTAGE_REG:
 		val = 1000 + (st->cell_threshhigh * 1568) / 100;
 		break;
-	case AD7280A_CELL_UNDERVOLTAGE:
+	case AD7280A_CELL_UNDERVOLTAGE_REG:
 		val = 1000 + (st->cell_threshlow * 1568) / 100;
 		break;
-	case AD7280A_AUX_ADC_OVERVOLTAGE:
+	case AD7280A_AUX_ADC_OVERVOLTAGE_REG:
 		val = (st->aux_threshhigh * 196) / 10;
 		break;
-	case AD7280A_AUX_ADC_UNDERVOLTAGE:
+	case AD7280A_AUX_ADC_UNDERVOLTAGE_REG:
 		val = (st->aux_threshlow * 196) / 10;
 		break;
 	default:
@@ -727,12 +751,12 @@ static ssize_t ad7280_write_channel_config(struct device *dev,
 		return ret;
 
 	switch (this_attr->address) {
-	case AD7280A_CELL_OVERVOLTAGE:
-	case AD7280A_CELL_UNDERVOLTAGE:
+	case AD7280A_CELL_OVERVOLTAGE_REG:
+	case AD7280A_CELL_UNDERVOLTAGE_REG:
 		val = ((val - 1000) * 100) / 1568; /* LSB 15.68mV */
 		break;
-	case AD7280A_AUX_ADC_OVERVOLTAGE:
-	case AD7280A_AUX_ADC_UNDERVOLTAGE:
+	case AD7280A_AUX_ADC_OVERVOLTAGE_REG:
+	case AD7280A_AUX_ADC_UNDERVOLTAGE_REG:
 		val = (val * 10) / 196; /* LSB 19.6mV */
 		break;
 	default:
@@ -743,16 +767,16 @@ static ssize_t ad7280_write_channel_config(struct device *dev,
 
 	mutex_lock(&st->lock);
 	switch (this_attr->address) {
-	case AD7280A_CELL_OVERVOLTAGE:
+	case AD7280A_CELL_OVERVOLTAGE_REG:
 		st->cell_threshhigh = val;
 		break;
-	case AD7280A_CELL_UNDERVOLTAGE:
+	case AD7280A_CELL_UNDERVOLTAGE_REG:
 		st->cell_threshlow = val;
 		break;
-	case AD7280A_AUX_ADC_OVERVOLTAGE:
+	case AD7280A_AUX_ADC_OVERVOLTAGE_REG:
 		st->aux_threshhigh = val;
 		break;
-	case AD7280A_AUX_ADC_UNDERVOLTAGE:
+	case AD7280A_AUX_ADC_UNDERVOLTAGE_REG:
 		st->aux_threshlow = val;
 		break;
 	}
@@ -781,7 +805,7 @@ static irqreturn_t ad7280_event_handler(int irq, void *private)
 		goto out;
 
 	for (i = 0; i < st->scan_cnt; i++) {
-		if (((channels[i] >> 23) & 0xF) <= AD7280A_CELL_VOLTAGE_6) {
+		if (((channels[i] >> 23) & 0xF) <= AD7280A_CELL_VOLTAGE_6_REG) {
 			if (((channels[i] >> 11) & 0xFFF) >=
 			    st->cell_threshhigh) {
 				u64 tmp = IIO_EVENT_CODE(IIO_VOLTAGE, 1, 0,
@@ -801,7 +825,7 @@ static irqreturn_t ad7280_event_handler(int irq, void *private)
 			}
 		} else {
 			if (((channels[i] >> 11) & 0xFFF) >=
-			    st->aux_threshhigh) {
+				st->aux_threshhigh) {
 				u64 tmp = IIO_UNMOD_EVENT_CODE(IIO_TEMP, 0,
 							IIO_EV_TYPE_THRESH,
 							IIO_EV_DIR_RISING);
@@ -833,26 +857,26 @@ static IIO_DEVICE_ATTR_NAMED(in_thresh_low_value,
 			     0644,
 			     ad7280_read_channel_config,
 			     ad7280_write_channel_config,
-			     AD7280A_CELL_UNDERVOLTAGE);
+			     AD7280A_CELL_UNDERVOLTAGE_REG);
 
 static IIO_DEVICE_ATTR_NAMED(in_thresh_high_value,
 			     in_voltage-voltage_thresh_high_value,
 			     0644,
 			     ad7280_read_channel_config,
 			     ad7280_write_channel_config,
-			     AD7280A_CELL_OVERVOLTAGE);
+			     AD7280A_CELL_OVERVOLTAGE_REG);
 
 static IIO_DEVICE_ATTR(in_temp_thresh_low_value,
 		       0644,
 		       ad7280_read_channel_config,
 		       ad7280_write_channel_config,
-		       AD7280A_AUX_ADC_UNDERVOLTAGE);
+		       AD7280A_AUX_ADC_UNDERVOLTAGE_REG);
 
 static IIO_DEVICE_ATTR(in_temp_thresh_high_value,
 		       0644,
 		       ad7280_read_channel_config,
 		       ad7280_write_channel_config,
-		       AD7280A_AUX_ADC_OVERVOLTAGE);
+		       AD7280A_AUX_ADC_OVERVOLTAGE_REG);
 
 static struct attribute *ad7280_event_attributes[] = {
 	&iio_dev_attr_in_thresh_low_value.dev_attr.attr,
@@ -892,7 +916,7 @@ static int ad7280_read_raw(struct iio_dev *indio_dev,
 
 		return IIO_VAL_INT;
 	case IIO_CHAN_INFO_SCALE:
-		if ((chan->address & 0xFF) <= AD7280A_CELL_VOLTAGE_6)
+		if ((chan->address & 0xFF) <= AD7280A_CELL_VOLTAGE_6_REG)
 			*val = 4000;
 		else
 			*val = 5000;
@@ -942,10 +966,9 @@ static int ad7280_probe(struct spi_device *spi)
 	st->spi->mode = SPI_MODE_1;
 	spi_setup(st->spi);
 
-	st->ctrl_lb = AD7280A_CTRL_LB_ACQ_TIME(pdata->acquisition_time & 0x3);
-	st->ctrl_hb = AD7280A_CTRL_HB_CONV_AVG(pdata->conversion_averaging
-			& 0x3) | (pdata->thermistor_term_en ?
-			AD7280A_CTRL_LB_THERMISTOR_EN : 0);
+	st->ctrl_lb = FIELD_PREP(AD7280A_CTRL_LB_ACQ_TIME_MSK, pdata->acquisition_time) |
+		FIELD_PREP(AD7280A_CTRL_LB_THERMISTOR_MSK, pdata->thermistor_term_en);
+	st->ctrl_hb = FIELD_PREP(AD7280A_CTRL_HB_CONV_AVG_MSK, pdata->conversion_averaging);
 
 	ret = ad7280_chain_setup(st);
 	if (ret < 0)
@@ -998,13 +1021,13 @@ static int ad7280_probe(struct spi_device *spi)
 
 	if (spi->irq > 0) {
 		ret = ad7280_write(st, AD7280A_DEVADDR_MASTER,
-				   AD7280A_ALERT, 1,
+				   AD7280A_ALERT_REG, 1,
 				   AD7280A_ALERT_RELAY_SIG_CHAIN_DOWN);
 		if (ret)
 			return ret;
 
 		ret = ad7280_write(st, ad7280a_devaddr(st->slave_num),
-				   AD7280A_ALERT, 0,
+				   AD7280A_ALERT_REG, 0,
 				   AD7280A_ALERT_GEN_STATIC_HIGH |
 				   (pdata->chain_last_alert_ignore & 0xF));
 		if (ret)
-- 
2.51.0




  parent reply	other threads:[~2026-02-04 14:46 UTC|newest]

Thread overview: 182+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-04 14:37 [PATCH 5.10 000/161] 5.10.249-rc1 review Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 001/161] pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node() Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 002/161] nvmet-tcp: remove boilerplate code Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 003/161] nvme-tcp: fix NULL pointer dereferences in nvmet_tcp_build_pdu_iovec Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 004/161] btrfs: send: check for inline extents in range_is_hole_in_parent() Greg Kroah-Hartman
2026-02-04 18:28   ` Ben Hutchings
2026-02-05 13:51     ` David Sterba
2026-02-05 14:06       ` Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 005/161] ip6_tunnel: use skb_vlan_inet_prepare() in __ip6_tnl_rcv() Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 006/161] macvlan: Add nodst option to macvlan type source Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 007/161] macvlan: Use hash iterators to simplify code Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 008/161] macvlan: fix possible UAF in macvlan_forward_source() Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 009/161] ipv4: ip_gre: make ipgre_header() robust Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 010/161] vsock/test: add a final full barrier after run all tests Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 011/161] net/sched: sch_qfq: do not free existing class in qfq_change_class() Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 012/161] ASoC: tlv320adcx140: fix word length Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 013/161] textsearch: describe @list member in ts_ops search Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 014/161] dmaengine: tegra-adma: Fix use-after-free Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 015/161] dmaengine: xilinx_dma: Fix uninitialized addr_width when "xlnx,addrwidth" property is missing Greg Kroah-Hartman
2026-02-04 14:37 ` [PATCH 5.10 016/161] phy: stm32-usphyc: Fix off by one in probe() Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 017/161] phy: broadcom: ns-usb3: Fix Wvoid-pointer-to-enum-cast warning (again) Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 018/161] dmaengine: omap-dma: fix dma_pool resource leak in error paths Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 019/161] HID: usbhid: paper over wrong bNumDescriptor field Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 020/161] ALSA: pcm: Improve the fix for race of buffer access at PCM OSS layer Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 021/161] net: can: j1939: j1939_xtp_rx_rts_session_active(): deactivate session upon receiving the second rts Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 022/161] phy: rockchip: inno-usb2: fix communication disruption in gadget mode Greg Kroah-Hartman
2026-02-05 14:09   ` Ben Hutchings
2026-02-05 14:32     ` Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 023/161] phy: rockchip: inno-usb2: fix disconnection " Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 024/161] phy: tegra: xusb: Explicitly configure HS_DISCON_LEVEL to 0x7 Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 025/161] usb: dwc3: Check for USB4 IP_NAME Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 026/161] USB: OHCI/UHCI: Add soft dependencies on ehci_platform Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 027/161] USB: serial: option: add Telit LE910 MBIM composition Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 028/161] USB: serial: ftdi_sio: add support for PICAXE AXE027 cable Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 029/161] ext4: fix iloc.bh leak in ext4_xattr_inode_update_ref Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 030/161] EDAC/x38: Fix a resource leak in x38_probe1() Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 031/161] EDAC/i3200: Fix a resource leak in i3200_probe1() Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 032/161] x86/resctrl: Fix memory bandwidth counter width for Hygon Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 033/161] x86/resctrl: Add missing resctrl initialization " Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 034/161] drm/nouveau/disp/nv50-: Set lock_core in curs507a_prepare Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 035/161] drm/panel-simple: fix connector type for DataImage SCF0700C48GGU18 panel Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 036/161] drm/vmwgfx: Fix an error return check in vmw_compat_shader_add() Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 037/161] dmaengine: at_hdmac: fix device leak on of_dma_xlate() Greg Kroah-Hartman
2026-02-05 14:57   ` Ben Hutchings
2026-02-05 15:26     ` Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 038/161] dmaengine: bcm-sba-raid: fix device leak on probe Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 039/161] dmaengine: lpc18xx-dmamux: fix device leak on route allocation Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 040/161] dmaengine: ti: dma-crossbar: fix device leak on dra7x " Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 041/161] dmaengine: ti: dma-crossbar: fix device leak on am335x " Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 042/161] dmaengine: ti: k3-udma: fix device leak on udma lookup Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 043/161] btrfs: fix deadlock in wait_current_trans() due to ignored transaction type Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 044/161] macvlan: Fix leaking skb in source mode with nodst option Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 045/161] posix-clock: introduce posix_clock_context concept Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 046/161] Fix memory leak in posix_clock_open() Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 047/161] posix-clock: Store file pointer in struct posix_clock_context Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 048/161] ptp: Add PHC file mode checks. Allow RO adjtime() without FMODE_WRITE Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 049/161] net: usb: dm9601: remove broken SR9700 support Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 050/161] selftests/net: convert fib-onlink-tests.sh to run it in unique namespace Greg Kroah-Hartman
2026-02-05 17:04   ` Ben Hutchings
2026-02-06 11:09     ` Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 051/161] selftests: net: fib-onlink-tests: Convert to use namespaces by default Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 052/161] sctp: sm_statefuns: Fix spelling mistakes Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 053/161] sctp: move SCTP_CMD_ASSOC_SHKEY right after SCTP_CMD_PEER_INIT Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 054/161] amd-xgbe: avoid misleading per-packet error log Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 055/161] gue: Fix skb memleak with inner IP protocol 0 Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 056/161] netlink: add a proto specification for FOU Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 057/161] net: fou: rename the source for linking Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 058/161] net: fou: use policy and operation tables generated from the spec Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 059/161] fou: Dont allow 0 for FOU_ATTR_IPPROTO Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 060/161] l2tp: avoid one data-race in l2tp_tunnel_del_work() Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 061/161] ipvlan: Make the addrs_lock be per port Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 062/161] net/sched: Enforce that teql can only be used as root qdisc Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 063/161] net/sched: qfq: Use cl_is_active to determine whether class is active in qfq_rm_from_ag Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 064/161] crypto: authencesn - reject too-short AAD (assoclen<8) to match ESP/ESN spec Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 065/161] comedi: dmm32at: serialize use of paged registers Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 066/161] w1: fix redundant counter decrement in w1_attach_slave_device() Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 067/161] Input: i8042 - add quirks for MECHREVO Wujie 15X Pro Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 068/161] Input: i8042 - add quirk for ASUS Zenbook UX425QA_UM425QA Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 069/161] scsi: storvsc: Process unsupported MODE_SENSE_10 Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 070/161] iio: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detection Greg Kroah-Hartman
2026-02-05 22:44   ` Ben Hutchings
2026-02-06  8:17     ` Francesco Lavra
2026-02-06 11:22       ` Greg Kroah-Hartman
2026-02-04 14:38 ` Greg Kroah-Hartman [this message]
2026-02-04 14:38 ` [PATCH 5.10 072/161] iio: adc: ad7280a: handle spi_setup() errors in probe() Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 073/161] regmap: Fix race condition in hwspinlock irqsave routine Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 074/161] scsi: core: Wake up the error handler when final completions race against each other Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 075/161] ALSA: usb: Increase volume range that triggers a warning Greg Kroah-Hartman
2026-02-04 14:38 ` [PATCH 5.10 076/161] net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 077/161] net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 078/161] mISDN: annotate data-race around dev->work Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 079/161] usbnet: limit max_mtu based on devices hard_mtu Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 080/161] scsi: hisi_sas: Use managed PCI functions Greg Kroah-Hartman
2026-02-05 23:09   ` Ben Hutchings
2026-02-06 11:11     ` Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 081/161] drm/amd/pm: Dont clear SI SMC table when setting power limit Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 082/161] drm/amd/pm: Workaround SI powertune issue on Radeon 430 (v2) Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 083/161] be2net: Fix NULL pointer dereference in be_cmd_get_mac_from_list Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 084/161] bonding: provide a net pointer to __skb_flow_dissect() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 085/161] octeontx2-af: Fix error handling Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 086/161] net/sched: act_ife: avoid possible NULL deref Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 087/161] leds: led-class: Only Add LED to leds_list when it is fully ready Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 088/161] of: fix reference count leak in of_alias_scan() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 089/161] iio: adc: ad9467: fix ad9434 vref mask Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 090/161] iio: adc: at91-sama5d2_adc: Fix potential use-after-free in sama5d2_adc driver Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 091/161] iio: dac: ad5686: add AD5695R to ad5686_chip_info_tbl Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 092/161] ALSA: ctxfi: Fix potential OOB access in audio mixer handling Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 093/161] ALSA: usb-audio: Fix use-after-free in snd_usb_mixer_free() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 094/161] mmc: rtsx_pci_sdmmc: implement sdmmc_card_busy function Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 095/161] wifi: ath10k: fix dma_free_coherent() pointer Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 096/161] wifi: mwifiex: Fix a loop in mwifiex_update_ampdu_rxwinsize() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 097/161] wifi: rsi: Fix memory corruption due to not set vif driver data size Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 098/161] octeontx2: Fix otx2_dma_map_page() error return code Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 099/161] slimbus: core: fix runtime PM imbalance on report present Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 100/161] slimbus: core: fix device reference leak " Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 101/161] intel_th: fix device leak on output open() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 102/161] uacce: fix cdev handling in the cleanup path Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 103/161] uacce: implement mremap in uacce_vm_ops to return -EPERM Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 104/161] uacce: ensure safe queue release with state management Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 105/161] netrom: fix double-free in nr_route_frame() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 106/161] perf/x86/intel: Do not enable BTS for guests Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 107/161] irqchip/gic-v3-its: Avoid truncating memory addresses Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 108/161] can: ems_usb: ems_usb_read_bulk_callback(): fix URB memory leak Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 109/161] can: kvaser_usb: kvaser_usb_read_bulk_callback(): " Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 110/161] can: mcba_usb: mcba_usb_read_bulk_callback(): " Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 111/161] can: usb_8dev: usb_8dev_read_bulk_callback(): " Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 112/161] migrate: correct lock ordering for hugetlb file folios Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 113/161] bpf: Do not let BPF test infra emit invalid GSO types to stack Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 114/161] bpf: Reject narrower access to pointer ctx fields Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 115/161] fbdev: fbcon: Properly revert changes when vc_resize() failed Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 116/161] fbdev: fbcon: release buffer when fbcon_do_set_font() failed Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 117/161] fbcon: always restore the old font data in fbcon_do_set_font() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 118/161] Bluetooth: hci_uart: fix null-ptr-deref in hci_uart_write_work Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 119/161] net/mlx5: Fix memory leak in esw_acl_ingress_lgcy_setup() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 120/161] net: mvpp2: cls: Fix memory leak in mvpp2_ethtool_cls_rule_ins() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 121/161] rocker: fix memory leak in rocker_world_port_post_fini() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 122/161] nfc: llcp: Fix memleak in nfc_llcp_send_ui_frame() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 123/161] ice: stop counting UDP csum mismatch as rx_errors Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 124/161] net/mlx5: Add HW definitions of vport debug counters Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 125/161] net/mlx5e: Expose rx_oversize_pkts_buffer counter Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 126/161] net/mlx5e: Report rx_discards_phy via rx_dropped Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 127/161] net/mlx5e: Account for netdev stats in ndo_get_stats64 Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 128/161] nfc: nci: Fix race between rfkill and nci_unregister_device() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 129/161] net: bridge: fix static key check Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 130/161] scsi: firewire: sbp-target: Fix overflow in sbp_make_tpg() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 131/161] dma/pool: distinguish between missing and exhausted atomic pools Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 132/161] scsi: be2iscsi: Fix a memory leak in beiscsi_boot_get_sinfo() Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 133/161] net/sched: act_ife: convert comma to semicolon Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 134/161] nvme-fc: rename free_ctrl callback to match name pattern Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 135/161] nvme-pci: do not directly handle subsys reset fallout Greg Kroah-Hartman
2026-02-04 14:39 ` [PATCH 5.10 136/161] nvme: fix PCIe subsystem reset controller state transition Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 137/161] xfs: set max_agbno to allow sparse alloc of last full inode chunk Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 138/161] dmaengine: stm32: dmamux: fix OF node leak on route allocation failure Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 139/161] dmaengine: stm32: dmamux: fix device leak on route allocation Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 140/161] scsi: xen: scsiback: Fix potential memory leak in scsiback_remove() Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 141/161] w1: w1_therm: use swap() to make code cleaner Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 142/161] w1: therm: Fix off-by-one buffer overflow in alarms_store Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 143/161] iio: adc: exynos_adc: fix OF populate on driver rebind Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 144/161] mei: trace: treat reg parameter as string Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 145/161] driver core: fix potential null-ptr-deref in device_add() Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 146/161] mm/pagewalk: add walk_page_range_vma() Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 147/161] ksm: use range-walk function to jump over holes in scan_get_next_rmap_item Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 148/161] drm/amdkfd: fix a memory leak in device_queue_manager_init() Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 149/161] comedi: Fix getting range information for subdevices 16 to 255 Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 150/161] can: esd_usb: esd_usb_read_bulk_callback(): fix URB memory leak Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 151/161] of: platform: Use default match table for /firmware Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 152/161] ipv6: sr: Fix MAC comparison to be constant-time Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 153/161] netfilter: nf_tables: typo NULL check in _clone() function Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 154/161] Revert "selftests: Replace sleep with slowwait" Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 155/161] writeback: fix 100% CPU usage when dirtytime_expire_interval is 0 Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 156/161] pinctrl: meson: mark the GPIO controller as sleeping Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 157/161] HID: uclogic: Correct devm device reference for hidinput input_dev name Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 158/161] HID: uclogic: Add NULL check in uclogic_input_configured() Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 159/161] drm/imx: imx-tve: use local encoder and connector variables Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 160/161] drm/imx: imx-tve: move initialization into probe Greg Kroah-Hartman
2026-02-04 14:40 ` [PATCH 5.10 161/161] drm/imx/tve: fix probe device leak Greg Kroah-Hartman
2026-02-04 19:31 ` [PATCH 5.10 000/161] 5.10.249-rc1 review Florian Fainelli
2026-02-04 19:51 ` Brett A C Sheffield
2026-02-04 19:54 ` Jon Hunter
2026-02-05 14:01   ` Greg Kroah-Hartman
2026-02-04 23:42 ` Dominique Martinet
2026-02-05 12:11 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260204143854.310914610@linuxfoundation.org \
    --to=gregkh@linuxfoundation.org \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=marcelo.schmitt1@gmail.com \
    --cc=patches@lists.linux.dev \
    --cc=sashal@kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox