Re: [PATCH 2/4] Driver core: add driver_probe_device

Dmitry Torokhov
2004-10-29T18:32:43Z

On Friday 29 October 2004 11:37 am, Greg KH wrote:
> On Tue, Oct 12, 2004 at 01:31:36AM -0500, Dmitry Torokhov wrote:
> > #### AUTHOR dtor_core@ameritech.net
> > #### COMMENT START
> > ### Comments for ChangeSet
> > Driver core: rename bus_match into driver_probe_device and export
> > it so subsystems can bind an individual device to a
> > specific driver without getting involved with driver
> > core internals.
>
> Applied, thanks.
>

Greg,

What about "bind_mode" device and driver attributes? If you are not going
to apply them then I need to rework driver_probe_device to not call
bus->match() function. The reason is that if bind_mode is not in the core
then I need to check these attributes in serio's bus match function, but
then I will not be able to use driver_probe_device to force binding when
user requests it. And if I don't check bind_mode in serio_bus_match then
I will have to do all driver/device mathing by hand which I wanted to
avoid in the first place.

Please let me know.

--
Dmitry