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

Johan Hovold
2026-04-29T15:08:22Z

On Wed, Apr 29, 2026 at 04:52:08PM +0200, Danilo Krummrich wrote:
> On Wed Apr 29, 2026 at 1:33 PM CEST, Johan Hovold wrote:
> > It seems we have differing definitions of "bug", but to me this is
> > clearly a bug in driver core.
>
> I think we do -- you are saying it is a bug that the driver core does not print
> a warning when a caller introduces a bug on its own due to an ordering
> violation.

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.

Johan