]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: runtime wake up device before calling usbnet_{read|write}_cmd
authorMing Lei <ming.lei@canonical.com>
Tue, 6 Nov 2012 04:53:08 +0000 (04:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2012 08:53:38 +0000 (03:53 -0500)
commit933441541643f39dae709e9a03d32bc4b265f6ec
tree8f977eceb56500f10eb5c9e2480622649d78af14
parentced2c3d7ef194e417f6c885795f5d801f4a3a444
usbnet: runtime wake up device before calling usbnet_{read|write}_cmd

This patch 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 <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c