[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250901190458.3c2853a0@jic23-huawei>
Date: Mon, 1 Sep 2025 19:04:58 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Andy Shevchenko <andriy.shevchenko@...el.com>
Cc: Duje Mihanović <duje@...emihanovic.xyz>, David
Lechner <dlechner@...libre.com>, Nuno Sá
<nuno.sa@...log.com>, Andy Shevchenko <andy@...nel.org>, Lee Jones
<lee@...nel.org>, Rob Herring <robh@...nel.org>, Krzysztof Kozlowski
<krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>, Karel Balej
<balejk@...fyz.cz>, David Wronek <david@...nlining.org>,
phone-devel@...r.kernel.org, ~postmarketos/upstreaming@...ts.sr.ht,
linux-kernel@...r.kernel.org, linux-iio@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH v2 2/3] iio: adc: Add driver for Marvell 88PM886 PMIC
ADC
On Mon, 1 Sep 2025 15:43:08 +0300
Andy Shevchenko <andriy.shevchenko@...el.com> wrote:
> On Sun, Aug 31, 2025 at 10:19:38PM +0200, Duje Mihanović wrote:
> > On Sunday, 31 August 2025 21:24:54 Central European Summer Time Karel Balej wrote:
> > > Duje Mihanović, 2025-08-31T12:33:05+02:00:
>
> ...
>
> > > > + iio->dev.of_node = dev->parent->of_node;
> > >
> > > Didn't you mean to drop this since Jonathan pointed out that it's done
> > > by the core?
> >
> > Actually I have found that device tree consumers fail to get their IO
> > channels without this line, so I left it.
>
> because the passed device is not parent?
Good point. I missed it seems to be going up another level.
Absolutely fine to override in that case.
>
> In any case this line is problematic. Use device_set_node() instead with the
> proper dev_fwnode() parameter.
>
Powered by blists - more mailing lists