• Ming Lei's avatar
    usbnet: fix usb_autopm_get_interface failure(v1) · b0786b43
    Ming Lei authored
    Since usbnet already took usb runtime pm, we have to
    enable runtime pm for usb interface of usbnet, otherwise
    usb_autopm_get_interface may return failure and cause
    'ifconfig usb0 up' failed if USB_SUSPEND(RUNTIME_PM) is
    enabled.
    
    Cc: David Brownell <dbrownell@users.sourceforge.net>
    Cc: Greg Kroah-Hartman <gregkh@suse.de>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Ben Hutchings <ben@decadent.org.uk>
    Cc: Joe Perches <joe@perches.com>
    Cc: Oliver Neukum <oliver@neukum.org>
    Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
    Cc: stable@kernel.org
    Signed-off-by: default avatarMing Lei <tom.leiming@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b0786b43
usbnet.c 40.2 KB