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>
Wed, 17 Aug 2022 12:23:57 +0000 (14:23 +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 9d56138133a9757e6b0ddeaeb2adea8798e52056..ef6a2891f290c93c8aac26af0650c264e9b079e4 100644 (file)
@@ -737,7 +737,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 090a78c948f286b10163e23e68906592817b481a..255fb9583c0a2c0bf7cd3efa73b36564f2ef7893 100644 (file)
@@ -292,7 +292,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 cb01283d4d1593e7f6c5c450a310121ca6a4d27f..f21f25a8cf6fe1c0070d08609da53128fd747906 100644 (file)
@@ -389,7 +389,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)