]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: cdc-acm: minimise no-suspend window during shutdown
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:48 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:10 +0000 (15:04 -0700)
commitb1d42efc217fdc1a6a704b344fd902ae52a012c8
tree8ecdc055e6f6c6b1c794d9b08b131840e0918568
parent89e54e4468338df5a4ab7627c5b8b10786ee43e8
USB: cdc-acm: minimise no-suspend window during shutdown

Now that acm_set_control() handles runtime PM properly, the only
remaining reason for the PM operations in shutdown is to clear the
needs_remote_wakeup flag before the final put.

Note that this also means that we now need to grab the write_lock to
prevent racing with resume.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c