Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 18befe4

Browse files
dumitruceclanjic23
authored andcommitted
iio: adc: ad7173: Clear append status bit
The previous value of the append status bit was not cleared before setting the new value. This caused the bit to remain set after enabling buffered mode for multiple channels and not permit further buffered reads from a single channel after the fact. Fixes: 76a1e6a ("iio: adc: ad7173: add AD7173 driver") Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com> Link: https://lore.kernel.org/r/20240530-ad7173-fixes-v3-4-b85f33079e18@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 245f3b1 commit 18befe4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/adc/ad7173.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ static int ad7173_append_status(struct ad_sigma_delta *sd, bool append)
543543
unsigned int interface_mode = st->interface_mode;
544544
int ret;
545545

546+
interface_mode &= ~AD7173_INTERFACE_DATA_STAT;
546547
interface_mode |= AD7173_INTERFACE_DATA_STAT_EN(append);
547548
ret = ad_sd_write_reg(&st->sd, AD7173_REG_INTERFACE_MODE, 2, interface_mode);
548549
if (ret)

0 commit comments

Comments
 (0)