]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: smsc95xx: fix broken runtime suspend
authorMing Lei <ming.lei@canonical.com>
Fri, 22 Feb 2013 03:05:04 +0000 (03:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2013 20:49:51 +0000 (15:49 -0500)
commit655ab6353d137d9122891a133d5ada01846d8493
treeb3be84ce175231ce85ee45caa213c42695297ee3
parent77322845da7613d5aa736f34bae07720922ced4a
usbnet: smsc95xx: fix broken runtime suspend

Commit edb0cc51(smsc95xx: enable dynamic autosuspend) implements
autosuspend, but breaks current runtime suspend, such as:
when the interface becomes down, the usb device can't be put into
runtime suspend any more.

This patch fixes the broken runtime suspend.

Cc: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c