Re: Problem with new driver model?

Patrick Mochel (mochel@osdl.org)
Wed, 5 Jun 2002 14:04:36 -0700 (PDT)


> Shouldn't the calls to __remove_driver be done inside the device_lock?

No. If the driver needs to lock, it is free to use it. But, what the
driver needs to do is up to the driver, and we don't want to force it not
to sleep.

But, the driver needs to be removed from the bus's list inside the lock,
so if a device the driver supports gets inserted, we won't try and bind
the two...Patch coming shortly.

-pat

-
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/