[i2c] [patch 1/5] i2c stack can probe()
Jean Delvare
khali at linux-fr.org
Sat Mar 3 10:58:07 CET 2007
On Fri, 2 Mar 2007 12:24:46 -0800, David Brownell wrote:
> On Friday 02 March 2007 12:02 pm, Jean Delvare wrote:
> > > No, and in fact that's the only change I made in my local copy of
> > > these patches: replacing that test with one to return early for legacy
> > > drivers, since they can't hotplug:
> > >
> > > if (dev->driver)
> > > return 0;
> >
> > You really mean if (!dev->driver)?
>
> No; until the driver core gets a flag saying "legacy, beware!" the
> only way we could possibly know that we don't need to kick in the
> MODALIAS environment variable stuff -- for the load-a-driver part
> of hotplugging -- is to notice that the device was created with a
> driver already bound to it. (If the legacy paths don't do that yet,
> we can make them do that.)
Ah, OK, makes sense now. Sorry for being slow ;) I don't know what the
legacy paths do exactly, so you'll have to check it out.
That being said, if we remove this check, what will happen is that we
will request a driver to be loaded while it is already loaded (or
actually just being loaded.) Would this lead to a deadlock, or is it
only suboptimal?
--
Jean Delvare
More information about the i2c
mailing list