[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75VcxpoYOgMLOVZ6LvPNGrvws1vnL9gDPVuK=xJjLHsGJqw@mail.gmail.com>
Date: Fri, 7 Nov 2025 17:28:10 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Romain Gantois <romain.gantois@...tlin.com>
Cc: Andy Shevchenko <andriy.shevchenko@...el.com>, Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Jonathan Cameron <jic23@...nel.org>, David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>, Hans de Goede <hansg@...nel.org>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-iio@...r.kernel.org
Subject: Re: [PATCH v3 5/5] regulator: ltm8054: Support output current limit control
On Fri, Nov 7, 2025 at 4:54 PM Romain Gantois
<romain.gantois@...tlin.com> wrote:
> On Thursday, 6 November 2025 19:32:29 CET Andy Shevchenko wrote:
> > On Thu, Nov 06, 2025 at 03:11:50PM +0100, Romain Gantois wrote:
...
> > > + ctl_dac = devm_iio_channel_get(&pdev->dev, "ctl");
> > > + if (IS_ERR(ctl_dac)) {
> > >
> > > + if (PTR_ERR(ctl_dac) == -ENODEV)
> > > + return ERR_PTR(-EPROBE_DEFER);
> >
> > Hmm... Are you sure about this?
>
> The only case where I want to defer is if the IO channel hasn't been created
> yet. From what I've read in iio_channel_get(), -ENODEV is returned specifically
> in this case. For example in fwnode_iio_channel_get_by_name() you have:
>
> ```
> if (!IS_ERR(chan) || PTR_ERR(chan) != -ENODEV)
> return chan;
Yes, but my point is that -ENODEV != -EPROBE_DEFER.
The latter may create an unbound driver in some cases. This needs a
very good justification explaining the metamorphoses.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists