Re: [PATCH v4 3/4] iio: adc: ltc2378: Enable high-speed data capture

From: Andy Shevchenko

Date: Mon Jun 29 2026 - 13:38:20 EST


On Mon, Jun 29, 2026 at 02:25:27PM -0300, Marcelo Schmitt wrote:
> > > + /* Double check the minimum CNV high time is met */
> > > + if (cnv_wf.duty_length_ns < LTC2378_TCNV_HIGH_NS)
> > > + return -EIO;
> >
> > Hmm... How is this IO issue?
>
> Okay, what about EDOM for PWM setup failures? Any error code suggestion otherwise?
> Will follow the other suggestions.

Seems -EDOM is in use in some cases of PWM. I haven't checked those cases, and
if fits I have no objection.

"-EDOM if setting failed due to the exact waveform not being possible"
(from PWM code comments).

--
With Best Regards,
Andy Shevchenko