[patch 5/5] introduction of usb_anchor and overhaul of usb-skeleton

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Novell
Message-ID <[email protected]>
Hi,

this patch set introduces usb_anchor and uses it to implement all modern
APIs in the skeleton driver.

- use of anchor in disconnect

	Regards
		Oliver

Signed-off-by: Oliver Neukum <[email protected]>
------

--- linux-2.6.22-rc2/drivers/usb/usb-skeleton.c.3	2007-05-25 13:11:33.000000000 +0200
+++ linux-2.6.22-rc2-autosuspend/drivers/usb/usb-skeleton.c	2007-05-25 13:13:32.000000000 +0200
@@ -444,7 +444,7 @@ static void skel_disconnect(struct usb_i
 	dev->interface = NULL;
 	mutex_unlock(&dev->io_mutex);
 
-
+	usb_kill_anchored_urbs(&dev->submitted);
 
 	/* decrement our usage count */
 	kref_put(&dev->kref, skel_delete);

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.