Re: [PATCH v3 1/3] drivers: base: Don't match devices with NULL of_node/fwnode/etc

2024-12-20 Thread Shuah Khan
On 12/18/24 22:45, David Gow wrote: On Tue, 17 Dec 2024 at 04:12, Brian Norris wrote: of_find_device_by_node(), bus_find_device_by_of_node(), bus_find_device_by_fwnode(), ..., all produce arbitrary results when provided with a NULL of_node, fwnode, ACPI handle, etc. This is counterintuitive, a

Re: [PATCH v3 1/3] drivers: base: Don't match devices with NULL of_node/fwnode/etc

2024-12-20 Thread Greg Kroah-Hartman
On Fri, Dec 20, 2024 at 10:33:51AM -0700, Shuah Khan wrote: > On 12/18/24 22:45, David Gow wrote: > > On Tue, 17 Dec 2024 at 04:12, Brian Norris wrote: > > > > > > of_find_device_by_node(), bus_find_device_by_of_node(), > > > bus_find_device_by_fwnode(), ..., all produce arbitrary results when >

Re: [PATCH v3 1/3] drivers: base: Don't match devices with NULL of_node/fwnode/etc

2024-12-18 Thread David Gow
On Tue, 17 Dec 2024 at 04:12, Brian Norris wrote: > > of_find_device_by_node(), bus_find_device_by_of_node(), > bus_find_device_by_fwnode(), ..., all produce arbitrary results when > provided with a NULL of_node, fwnode, ACPI handle, etc. This is > counterintuitive, and the source of a few bugs, s

[PATCH v3 1/3] drivers: base: Don't match devices with NULL of_node/fwnode/etc

2024-12-16 Thread Brian Norris
of_find_device_by_node(), bus_find_device_by_of_node(), bus_find_device_by_fwnode(), ..., all produce arbitrary results when provided with a NULL of_node, fwnode, ACPI handle, etc. This is counterintuitive, and the source of a few bugs, such as the one fixed by commit 5c8418cf4025 ("PCI/pwrctrl: Un