USB: serial: fix tty-port initialized comments
authorJohan Hovold <johan@kernel.org>
Mon, 25 Jul 2022 08:44:57 +0000 (10:44 +0200)
committerJohan Hovold <johan@kernel.org>
Mon, 25 Jul 2022 09:01:40 +0000 (11:01 +0200)
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>
drivers/usb/serial/sierra.c
drivers/usb/serial/usb-serial.c
drivers/usb/serial/usb_wwan.c

index 525c7f888c90ac2faa95affa441b485791d6512e..353b2549eaa8a7452a58ccfc18cd4733dafdeb03 100644 (file)
@@ -735,7 +735,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 24101bd7fcad2b39da98bc5deb8724b9b2df571c..e35bea2235c1cad5055838b894940af104b9c370 100644 (file)
@@ -295,7 +295,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 dab38b63eaf7faa1d05227af4d19683659aa402a..cc81ab7ef4da15a7e6fab17939718ca8b9fe33c0 100644 (file)
@@ -388,7 +388,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)