public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] drivers: base: Don't match device with NULL of_node/fwnode/etc + tests
@ 2024-12-10 19:13 Brian Norris
  2024-12-10 19:13 ` [PATCH 1/4] drivers: base: Don't match devices with NULL of_node/fwnode/etc Brian Norris
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Brian Norris @ 2024-12-10 19:13 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Rafael J. Wysocki, Maxime Ripard, linux-kselftest, kunit-dev,
	Rob Herring, David Gow, Rae Moar, linux-acpi, Brian Norris

This series:
1. makes the behavior of_find_device_by_node(),
   bus_find_device_by_of_node(), bus_find_device_by_fwnode(), etc., more
   consistent when provided with a NULL node/handle;
2. adds kunit tests to validate the new NULL-argument behavior; and
3. makes some related improvements and refactoring for the drivers/base/
   kunit tests.

This series aims to prevent problems like the ones resolved in commit
5c8418cf4025 ("PCI/pwrctrl: Unregister platform device only if one
actually exists").


Brian Norris (4):
  drivers: base: Don't match devices with NULL of_node/fwnode/etc
  drivers: base: test: Enable device model tests with KUNIT_ALL_TESTS
  drivers: base: test: Drop "devm" from platform-device-test names
  drivers: base: test: Add ...find_device_by...(... NULL) tests

 drivers/base/core.c                      |  8 ++---
 drivers/base/test/Kconfig                |  1 +
 drivers/base/test/platform-device-test.c | 42 ++++++++++++++++++++----
 3 files changed, 40 insertions(+), 11 deletions(-)

-- 
2.47.0.338.g60cca15819-goog


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-12-11 19:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-10 19:13 [PATCH 0/4] drivers: base: Don't match device with NULL of_node/fwnode/etc + tests Brian Norris
2024-12-10 19:13 ` [PATCH 1/4] drivers: base: Don't match devices with NULL of_node/fwnode/etc Brian Norris
2024-12-10 19:13 ` [PATCH 2/4] drivers: base: test: Enable device model tests with KUNIT_ALL_TESTS Brian Norris
2024-12-10 19:13 ` [PATCH 3/4] drivers: base: test: Drop "devm" from platform-device-test names Brian Norris
2024-12-11 17:05   ` Maxime Ripard
2024-12-11 19:05     ` Brian Norris
2024-12-10 19:13 ` [PATCH 4/4] drivers: base: test: Add ...find_device_by...(... NULL) tests Brian Norris
2024-12-11 13:57 ` [PATCH 0/4] drivers: base: Don't match device with NULL of_node/fwnode/etc + tests Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox