Oliver Neukum wrote:
Am Dienstag, 8. Juni 2004 17:30 schrieb David Brownell:
Marcel Holtmann wrote:
Is there some problem calling usb_set_configuration() from keventd
as I suggested?
It will make the driver more complex and I don't think it is needed.
It's needed, but it's not very complex. Just define a work_struct,
initialize it with a routine that calls usb_set_configuration(),
and schedule_work().
Not quite so simple. You need to handle disconnect() before or
while your scheduled work is running.
It's simple enough that although I can think of several different
ways to do that, I firmly believe Marcel can think of them to
as well as a few others! Hints: kmalloc, kfree, refcount. :)
- Dave
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel