Re: [PATCH 11/18] iio: adc: ad4170-4: Fix sinc5 filter FILTER_FS range on AD4190-4 and AD4195-4

From: Andy Shevchenko

Date: Thu Dec 03 2026 - 12:17:31 EST


On Thu, Dec 03, 2026 at 04:19:51PM +0100, Janani Sunil wrote:
> The sinc5 filter of the AD4170-4 accepts FILTER_FS values 1, 2, 4, and
> multiples of 4 up to 256, but on the AD4190-4 and AD4195-4 the lowest
> allowed value is 4. The driver has a single table of sinc5 FILTER_FS
> values, taken from the AD4170-4, so on the AD4190-4 and AD4195-4 it
> builds the two highest sinc5 sample rates out of FILTER_FS 1 and 2,
> which those parts reject. Both rates are listed in
> sampling_frequency_available and either can be written to
> sampling_frequency.
>
> The same table supplies the lower bound filter_fs is clamped to when the
> sinc5 filter is selected, so the clamp does not lift a FILTER_FS of 1 or
> 2 to a value the part accepts.
>
> Give the AD4190-4 and AD4195-4 their own sinc5 FILTER_FS table and reach
> it through chip_info, and take the clamp lower bound from that table so
> it follows the device too.

Can you revisit the patch series order? This seems to be better done before you
fix div_u64() case, no?

--
With Best Regards,
Andy Shevchenko