Thread (7 messages) 7 messages, 3 authors, 2011-09-06

Re: [PATCH] usbnet: ignore get interface retval of -EINPROGRESS

flat view

From: Oliver Neukum <oliver@neukum.org>
Date: 2011-09-03 16:34:31

Am Samstag, 3. September 2011, 16:21:00 schrieb Jim Wylder:
When calling pm_runtime_get, usb_autopm_get_interface_async
treats a return value of -EINPROGRESS as a success and
increments the usage count.  Since the interface is resuming,
it is safe for usbnet_start_xmit to submit the urb.
usbnet_start_xmit() is exported, so simply stating that it is
called when the interface is resumingisn't enough. It seems to
me that the later check for DEV_ASLEEP will save as, but have
you checked for that?

	Regards
		Oliver
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help