]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: return -EBUSY for runtime suspend
authorhayeswang <hayeswang@realtek.com>
Fri, 17 Oct 2014 08:55:08 +0000 (16:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Oct 2014 03:46:35 +0000 (23:46 -0400)
commit92fb0cd1e1978b616ec829e60182eace9e9454bd
tree8f02af17a0087a6a936c751a06ca3773416d46f9
parent9e5af3ba51047f26debf50719871c6e1797a11e6
r8152: return -EBUSY for runtime suspend

Remove calling cancel_delayed_work_sync() for runtime suspend,
because it would cause dead lock. Instead, return -EBUSY to
avoid the device enters suspending if the net is running and
the delayed work is pending or running. The delayed work would
try to wake up the device later, so the suspending is not
necessary.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c