[GIT PULL] Driver core fixes for 7.1-rc1

From: Danilo Krummrich

Date: Sun Apr 19 2026 - 11:44:09 EST


Hi Linus,

Please pull these driver-core fixes.

All commits have been in linux-next for 5 rounds (4 for the kernel-doc fix); no
conflicts expected.

I also included a software node patch from Bartosz; it's not strictly a fix, but
he has follow-up patches building on it across various trees, so including it
for -rc1 still seemed like the pragmatic choice. I hope this is fine with you.

- Danilo

The following changes since commit c369299895a591d96745d6492d4888259b004a9e:

Linux 7.0-rc5 (2026-03-22 14:42:17 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.git tags/driver-core-7.1-rc1-2

for you to fetch changes up to 5b484311507b5d403c1f7a45f6aa3778549e268b:

driver core: Add kernel-doc for DEV_FLAG_COUNT enum value (2026-04-14 11:27:27 +0200)

----------------------------------------------------------------
Driver core fixes for 7.1-rc1

- Prevent a device from being probed before device_add() has finished
initializing it; gate probe with a "ready_to_probe" device flag to
avoid races with concurrent driver_register() calls

- Fix a kernel-doc warning for DEV_FLAG_COUNT introduced by the above

- Return -ENOTCONN from software_node_get_reference_args() when a
referenced software node is known but not yet registered, allowing
callers to defer probe

- In sysfs_group_attrs_change_owner(), also check is_visible_const();
missed when the const variant was introduced

----------------------------------------------------------------
Bartosz Golaszewski (1):
software node: return -ENOTCONN when referenced swnode is not registered yet

Douglas Anderson (2):
driver core: Don't let a device probe until it's ready
driver core: Add kernel-doc for DEV_FLAG_COUNT enum value

Thomas Weißschuh (1):
sysfs: attribute_group: Respect is_visible_const() when changing owner

drivers/base/core.c | 15 +++++++++++++++
drivers/base/dd.c | 20 ++++++++++++++++++++
drivers/base/property.c | 2 ++
drivers/base/swnode.c | 2 +-
fs/sysfs/group.c | 7 +++++--
include/linux/device.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 88 insertions(+), 3 deletions(-)