aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2021-09-10 14:11:28 +0200
committerJohan Hovold <[email protected]>2021-09-20 11:49:34 +0200
commit6400b974910407cd299dc08578a6c1792b4c922a (patch)
treec5fa78901493dda544cda1f037dcd604090c36bf /drivers/usb/cdns3/cdns3-trace.c
parent96a83c95c3da5ba55ea2cf6ce87de10fc03417a9 (diff)
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 <[email protected]> Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions