Johan Hovold 6400b97491 USB: serial: allow hung up ports to be suspended
User space can keep a tty open indefinitely and that should not prevent
a hung up port and its USB device from being runtime suspended.

Fix this by incrementing the PM usage counter when the port it activated
and decrementing the counter when the port is shutdown rather than when
the tty is installed and the last reference is dropped, respectively.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
2021-09-20 11:49:34 +02:00
..
2021-05-21 20:05:40 +02:00
2021-08-09 08:52:46 +02:00
2021-09-01 09:59:34 -07:00
2021-09-01 09:59:34 -07:00
2020-09-16 12:42:10 +02:00
2021-08-26 13:41:52 +02:00
2021-08-16 18:57:19 +02:00
2021-09-02 15:09:46 -07:00