Re: [PATCH 6/7] iio: adc: ad485x: add ad485x driver
From: Andy Shevchenko
Date: Sun Sep 29 2024 - 15:22:40 EST
On Sat, Sep 28, 2024 at 8:30 PM Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
...
> > We have quite a few parts in the pipline right like this one that have
> > per-sample status bits. In the past, these were generally handled with
> > IIO events, but this doesn't really work for these high-speed backends
> > since the data is being piped directly to DMA and we don't look at
> > each sample in the ADC driver. So it would be worthwhile to try to
> > find some general solution here for handling this sort of thing.
>
> We have previously talked about schemes to describe metadata
> alongside channels. I guess maybe it's time to actually look at how
> that works. I'm not sure dynamic control of that metadata
> is going to be easy to do though or if we even want to
> (as opposed to always on or off for a particular device).
Time for the kernel to return JSON on a per channel basis?
Just saying :-)
--
With Best Regards,
Andy Shevchenko