]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 18:38:47 +0000 (13:38 -0500)
commit14a5e237b27166a5707c37bc74f9fc4ebd4369b4
treea2d0dd46864b6adf1a93490d9e46ccad1dfcc7eb
parentb545e5fe753cbdd74a02dbddb01f64e11e7acc1f
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