* [PATCH] iio: ad_sigma_delta: Handle CS assertion as intended in ad_sd_read_reg_raw()
@ 2024-11-19 18:36 Uwe Kleine-König
[not found] ` <f4cb05ec-6b94-4c63-bf42-2fbd40dfd532@baylibre.com>
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2024-11-19 18:36 UTC (permalink / raw)
To: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron,
Alexandru Ardelean
Cc: linux-iio
When struct ad_sigma_delta::keep_cs_asserted was introduced only
register writing was adapted to honor this new flag. Also respect it
when reading a register.
Fixes: df1d80aee963 ("iio: ad_sigma_delta: Properly handle SPI bus locking vs CS assertion")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
Hello,
I didn't do extensive tests with that commit, but while working on
making the ad_sigma_delta stuff more robust I noticed this
inconsistency.
Review and testing welcome as I only have a single machine with a single
ADC that is using this code.
Best regards
Uwe
drivers/iio/adc/ad_sigma_delta.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/ad_sigma_delta.c b/drivers/iio/adc/ad_sigma_delta.c
index 2f3b61765055..4b81da8d3cf2 100644
--- a/drivers/iio/adc/ad_sigma_delta.c
+++ b/drivers/iio/adc/ad_sigma_delta.c
@@ -109,7 +109,7 @@ static int ad_sd_read_reg_raw(struct ad_sigma_delta *sigma_delta,
}, {
.rx_buf = val,
.len = size,
- .cs_change = sigma_delta->bus_locked,
+ .cs_change = sigma_delta->keep_cs_asserted,
},
};
struct spi_message m;
base-commit: 414c97c966b69e4a6ea7b32970fa166b2f9b9ef0
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-01 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-19 18:36 [PATCH] iio: ad_sigma_delta: Handle CS assertion as intended in ad_sd_read_reg_raw() Uwe Kleine-König
[not found] ` <f4cb05ec-6b94-4c63-bf42-2fbd40dfd532@baylibre.com>
2024-12-01 13:23 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox