[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250929103558.000033bf@huawei.com>
Date: Mon, 29 Sep 2025 10:35:58 +0100
From: Jonathan Cameron <jonathan.cameron@...wei.com>
To: Sakari Ailus <sakari.ailus@...ux.intel.com>
CC: <linux-acpi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-input@...r.kernel.org>, <linux-leds@...r.kernel.org>,
<linux-media@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-spi@...r.kernel.org>, "Rafael J. Wysocki" <rafael@...nel.org>, "Len
Brown" <lenb@...nel.org>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Danilo Krummrich <dakr@...nel.org>, Andy Shevchenko
<andriy.shevchenko@...ux.intel.com>, Daniel Scally <djrscally@...il.com>,
Heikki Krogerus <heikki.krogerus@...ux.intel.com>, Javier Carrasco
<javier.carrasco@...fvision.net>, Dmitry Torokhov
<dmitry.torokhov@...il.com>, Lee Jones <lee@...nel.org>, Pavel Machek
<pavel@...nel.org>, Matthias Fend <matthias.fend@...end.at>, Chanwoo Choi
<cw00.choi@...sung.com>, Krzysztof Kozlowski <krzk@...nel.org>, "Laurent
Pinchart" <laurent.pinchart@...asonboard.com>, Paul Elder
<paul.elder@...asonboard.com>, Mauro Carvalho Chehab <mchehab@...nel.org>,
Horatiu Vultur <horatiu.vultur@...rochip.com>,
<UNGLinuxDriver@...rochip.com>, Andrew Lunn <andrew+netdev@...n.ch>, "David
S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, "Jakub
Kicinski" <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Mark Brown
<broonie@...nel.org>, Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar
<mingo@...nel.org>
Subject: Re: [PATCH v2 04/16] ACPI: property: Return present device nodes
only on fwnode interface
On Wed, 24 Sep 2025 10:45:50 +0300
Sakari Ailus <sakari.ailus@...ux.intel.com> wrote:
> fwnode_graph_get_next_subnode() may return fwnode backed by ACPI device
> nodes and there has been no check these devices are present in the system,
> unlike there has been on fwnode OF backend. In order to provide consistent
> behaviour towards callers, add a check for device presence by introducing
> a new function acpi_get_next_present_subnode(), used as the
> get_next_child_node() fwnode operation that also checks device node
> presence.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@...ux.intel.com>
I think this is fine because of the bit in the ACPI spec that says all
bits are set if _STA is missing. It seems much less likely we'll see
problems with hardware disappearing because _STA is there but says
the device isn't present.
Always a regression risk though :(
With the formatting changes Laurent asked for
Reviewed-by: Jonathan Cameron <jonathan.cameron@...wei.com>
Powered by blists - more mailing lists