USB: serial: fix tty-port initialized comments
authorJohan Hovold <johan@kernel.org>
Mon, 25 Jul 2022 08:44:57 +0000 (10:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:11:22 +0000 (11:11 +0200)
[ Upstream commit 688ee1d1785c1359f9040f615dd8e6054962bce2 ]

Fix up the tty-port initialized comments which got truncated and
obfuscated when replacing the old ASYNCB_INITIALIZED flag.

Fixes: d41861ca19c9 ("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>
drivers/usb/serial/sierra.c
drivers/usb/serial/usb-serial.c
drivers/usb/serial/usb_wwan.c

index a9c5564b6b65bc7d25e4ef47b50e463731d54aa9..fcbe8a9d26502487db3c0d01f08132389eaa770a 100644 (file)
@@ -759,7 +759,8 @@ static void sierra_close(struct usb_serial_port *port)
 
        /*
         * 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);
        if (--intfdata->open_ports == 0)
index 3dc3464626fb7aa654e2c04890f7df3ab641974b..731bae05d7e57af046763b39870f228aa182f867 100644 (file)
@@ -254,7 +254,7 @@ static int serial_open(struct tty_struct *tty, struct file *filp)
  *
  * Shut down a USB serial port. Serialized against activate by the
  * 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.
  */
index 4fab7ec9cd3fd624da6bf475db95a7aa0b6d2fa0..bb05c9ea919081cad964a328e4d10c31303c63f4 100644 (file)
@@ -465,7 +465,8 @@ void usb_wwan_close(struct usb_serial_port *port)
 
        /*
         * 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);
        if (--intfdata->open_ports == 0)