Re: [PATCH 6/6] iio: adc: ad7380: Add support for multiple SPI buses

From: David Lechner

Date: Wed Oct 15 2025 - 14:46:31 EST


On 10/15/25 5:36 AM, Nuno Sá wrote:
> On Tue, 2025-10-14 at 17:02 -0500, David Lechner wrote:

...

>>  
>>   if (st->seq) {
>>   xfer[0].delay.value = xfer[1].delay.value = t_convert;
>> @@ -1124,6 +1118,7 @@ static int ad7380_update_xfers(struct ad7380_state *st,
>>   AD7380_SPI_BYTES(scan_type) *
>>   st->chip_info->num_simult_channels;
>>   xfer[3].rx_buf = xfer[2].rx_buf + xfer[2].len;
>> + xfer[3].multi_bus_mode = xfer[2].multi_bus_mode;
>
> Why not doing the above once during probe?
>

There is nothing else in st->seq_xfer[3] that gets set in probe, so
I didn't really consider it. Seems like it should be fine to do as you
suggest though.