Re: [BKPATCH] bus notifiers for the generic device model

From: James Bottomley (James.Bottomley@SteelEye.com)
Date: Wed Dec 04 2002 - 13:04:41 EST


greg@kroah.com said:
> But doesn't the bus specific core know when drivers are attached, as
> it was told to register or unregister a specific driver? So I don't
> see why this is really needed.

The problem is that the bus specific core registration no-longer knows if the
probes succeeded or failed (and if they did, what devices were attached),
since probing is controlled by the base core.

What the bus needs to know is when a driver attaches to a specific device (and
what device it has attached to).

Unless you have a better way of getting the attachment information out of the
bus after the base probes have executed, a notifier seemed to be the simplest
thing.

James

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:19 EST