]> git.karo-electronics.de Git - linux-beck.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 18:38:47 +0000 (13:38 -0500)
commit6a0b76c04ec157c88ca943debf78a8ee58469f2d
treea2d0dd46864b6adf1a93490d9e46ccad1dfcc7eb
parent7630ea4bda18df2ee1c64dfdca1724a9cc32f920
r8152: don't execute runtime suspend if the tx is not empty

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>
drivers/net/usb/r8152.c