USB: serial: fix tty-port initialized comments
[ Upstream commit688ee1d178
] Fix up the tty-port initialized comments which got truncated and obfuscated when replacing the old ASYNCB_INITIALIZED flag. Fixes:d41861ca19
("tty: Replace ASYNC_INITIALIZED bit and update atomically") Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
faa7377348
commit
366ae9ad49
@ -757,7 +757,8 @@ static void sierra_close(struct usb_serial_port *port)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Need to take susp_lock to make sure port is not already being
|
* Need to take susp_lock to make sure port is not already being
|
||||||
* resumed, but no need to hold it due to initialized
|
* resumed, but no need to hold it due to the tty-port initialized
|
||||||
|
* flag.
|
||||||
*/
|
*/
|
||||||
spin_lock_irq(&intfdata->susp_lock);
|
spin_lock_irq(&intfdata->susp_lock);
|
||||||
if (--intfdata->open_ports == 0)
|
if (--intfdata->open_ports == 0)
|
||||||
|
@ -251,7 +251,7 @@ static int serial_open(struct tty_struct *tty, struct file *filp)
|
|||||||
*
|
*
|
||||||
* Shut down a USB serial port. Serialized against activate by the
|
* Shut down a USB serial port. Serialized against activate by the
|
||||||
* tport mutex and kept to matching open/close pairs
|
* tport mutex and kept to matching open/close pairs
|
||||||
* of calls by the initialized flag.
|
* of calls by the tty-port initialized flag.
|
||||||
*
|
*
|
||||||
* Not called if tty is console.
|
* Not called if tty is console.
|
||||||
*/
|
*/
|
||||||
|
@ -463,7 +463,8 @@ void usb_wwan_close(struct usb_serial_port *port)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Need to take susp_lock to make sure port is not already being
|
* Need to take susp_lock to make sure port is not already being
|
||||||
* resumed, but no need to hold it due to initialized
|
* resumed, but no need to hold it due to the tty-port initialized
|
||||||
|
* flag.
|
||||||
*/
|
*/
|
||||||
spin_lock_irq(&intfdata->susp_lock);
|
spin_lock_irq(&intfdata->susp_lock);
|
||||||
if (--intfdata->open_ports == 0)
|
if (--intfdata->open_ports == 0)
|
||||||
|
Reference in New Issue
Block a user