• Ming Lei's avatar
    usbnet: handle remote wakeup asap · 65841fd5
    Ming Lei authored
    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: default avatarMing Lei <ming.lei@canonical.com>
    Acked-by: default avatarOliver Neukum <oneukum@suse.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    65841fd5
usbnet.c 42.8 KB