Skip to contentSkip to conversation

USB: serial: fix tty-port initialized comments

PATCH In review Johan Hovold 2 participants 4 messages Jul 25, 2022

Subsystems (2)
lore
Share & tools
lore

Johan Hovold

author maintainer
#0 lore raw

PATCH 1/1 USB: serial: fix tty-port initialized comments

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")
---
 drivers/usb/serial/sierra.c     | 3 ++-
 drivers/usb/serial/usb-serial.c | 2 +-
 drivers/usb/serial/usb_wwan.c   | 3 ++-
 3 files changed, 5 insertions(+), 3 deletions(-)
drivers/usb/serial/sierra.c +2 -1
index 525c7f888c90..353b2549eaa8 100644
@@ -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)
drivers/usb/serial/usb-serial.c +1 -1
index 24101bd7fcad..e35bea2235c1 100644
@@ -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.
  */
drivers/usb/serial/usb_wwan.c +2 -1
index 6129a6e26f2c..0017f6e969e1 100644
@@ -390,7 +390,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)
Signature · 1 line
2.35.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Johan Hovold

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")

Looks good, want me to take this now as my tree should be "closed" for 5.20-rc1 now, but stuff like this can sneak in.

If not, and you want to send it to me later, feel free to add:

author maintainer
#2 lore raw
Quoted 9 lines · Greg Kroah-Hartman
Quoted 5 lines · Johan Hovold

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")

Looks good, want me to take this now as my tree should be "closed" for 5.20-rc1 now, but stuff like this can sneak in.

I was hoping to be able to use that extra week that -rc8 bought us.

I have a three trivial cleanups in my -next branch. Mind if I add this one on top and send it to you straight away?

Quoted 3 lines

If not, and you want to send it to me later, feel free to add:

Johan

maintainer
#3 lore raw
Quoted 5 lines · Johan Hovold
Quoted 4 lines · Greg Kroah-Hartman
Quoted 3 lines · Johan Hovold

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

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Fixes d41861ca19c9 ("tty: Replace ASYNC_INITIALIZED bit and update atomically")

Looks good, want me to take this now as my tree should be "closed" for 5.20-rc1 now, but stuff like this can sneak in.

I was hoping to be able to use that extra week that -rc8 bought us.

Yeah, -rc8 has got us a few more days.

Quoted 2 lines

I have a three trivial cleanups in my -next branch. Mind if I add this one on top and send it to you straight away?

Sure, please do!

greg k-h