summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/io_ti.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-09-10 14:11:28 +0200
committerJohan Hovold <johan@kernel.org>2021-09-20 11:49:34 +0200
commit6400b974910407cd299dc08578a6c1792b4c922a (patch)
treec5fa78901493dda544cda1f037dcd604090c36bf /drivers/usb/serial/io_ti.h
parent96a83c95c3da5ba55ea2cf6ce87de10fc03417a9 (diff)
downloadlinux-6400b974910407cd299dc08578a6c1792b4c922a.tar.bz2
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>
Diffstat (limited to 'drivers/usb/serial/io_ti.h')
0 files changed, 0 insertions, 0 deletions