Re: [PATCH] driver core: reject devices with unregistered buses

Danilo Krummrich
2026-04-29T15:29:04Z

On Wed Apr 29, 2026 at 5:08 PM CEST, Johan Hovold wrote:
> No, I'm saying that it's a bug in driver core to silently treat a device
> that is registered before its bus as a bus-less device.

This is an argument that I can buy into, but in the previous discussion (and in
the commit message) the whole motivation evolved around "reject devices with
unregistered buses to catch any callers that get the ordering wrong", i.e. catch
other people's bugs.

What you are raising now is "the driver core is conflating no bus with
unregistered bus handling". However, the commit message does not reflect that at
all.

Can you please adjust the commit message accordingly?

(As for the stable question, I don't think this changes anything though.)