]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: handle remote wakeup asap
authorMing Lei <ming.lei@canonical.com>
Tue, 19 Jun 2012 21:15:53 +0000 (21:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jun 2012 00:34:18 +0000 (17:34 -0700)
commit352baebd4c24489284445ab3163c74a4591f108d
tree804267b5d8b710e9939460aaaecb0803356c7843
parent393b8d5e740c8f16343b6da3e3b33c8216a218be
usbnet: handle remote wakeup asap

If usbnet is resumed by remote wakeup, generally there are
some packets comming to be handled, so allocate and submit
rx URBs in usbnet_resume to avoid delays introduced by tasklet.
Otherwise, usbnet may have been runtime suspended before the
usbnet_bh is executed to schedule Rx URBs.

Without the patch, usbnet can't recieve any packets from peer
in runtime suspend state if runtime PM is enabled and
autosuspend_delay is set as zero.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c