]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cdc-acm: simplify runtime PM locking
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:46 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:09 +0000 (15:04 -0700)
commit03ec0a8bf67926b2056d93814d22531e8bdc1fb4
tree7e11e0058cc745b5e64e5d247369fab6b3b102ab
parent8d5d80387fd70779236274022c20b564dfa405c9
USB: cdc-acm: simplify runtime PM locking

We can simply the runtime PM locking as there's no need to check the
susp_count in the read path (at least not since killing the rx tasklet).

Specifically, the read urbs will never be resubmitted by the completion
handler when killed during suspend.

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