]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
r8152: don't execute runtime suspend if the tx is not empty
authorhayeswang <hayeswang@realtek.com>
Mon, 23 Jan 2017 06:18:43 +0000 (14:18 +0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 8 Mar 2017 13:35:34 +0000 (10:35 -0300)
commit09f4a559a5586736080708d40a5016bed478bd36
treee990add512e3fd46030b526606674a2bbcdff7bb
parent80d84a4227f56dfdd301382a52c52d642bba6480
r8152: don't execute runtime suspend if the tx is not empty

BugLink: http://bugs.launchpad.net/bugs/1662507
[ Upstream commit 6a0b76c04ec157c88ca943debf78a8ee58469f2d ]

Runtime suspend shouldn't be executed if the tx queue is not empty,
because the device is not idle.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/usb/r8152.c