Re: [PATCH v2 5/5] usbnet: make device out of suspend before calling usbnet_read[write]_cmd

2012-11-04 Thread Sergei Shtylyov
Hello. On 04-11-2012 15:16, Ming Lei wrote: s/make/wake/ in the subject? This patche gets the runtime PM reference count before calling s/patche/patch/ usbnet_read[write]_cmd, and puts it after completion of the usbnet_read[write]_cmd, so that the usb control message can always

[PATCH v2 5/5] usbnet: make device out of suspend before calling usbnet_read[write]_cmd

2012-11-04 Thread Ming Lei
This patche gets the runtime PM reference count before calling usbnet_read[write]_cmd, and puts it after completion of the usbnet_read[write]_cmd, so that the usb control message can always be sent to one active device in the non-PM context. Signed-off-by: Ming Lei --- drivers/net/usb/usbnet.c |