Thread (1 message) 1 message, 1 author, 2012-10-12

Re: [PATCH 01/12] usbnet: introduce usbnet 3 command helpers

From: Alan Stern <hidden>
Date: 2012-10-12 15:18:35

On Fri, 12 Oct 2012, Ming Lei wrote:
quoted
probably easiest for the runtime PM core to use tsk_set_allowd_gfp()
before calling any runtime_resume method.
Yes, it might be done in usb runtime resume context because all
usb device might include a mass storage interface. But, in fact,
we can find if there is one mass storage interface on the current
configuration easily inside usb_runtime_resume().

Also, we can loose the constraint in runtime PM core, before calling
runtime_resume callback for one device, the current context is marked
as ~GFP_IOFS only if it is a block device or there is one block device
descendant. But the approach becomes a bit complicated because
device tree traversing is involved.
Exactly.  It's much easier just to do it always.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help