projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e2a44c
)
tty: tty_port_open, document shutdown vs failed activate
author
Jiri Slaby
<jslaby@suse.cz>
Mon, 24 Jan 2022 07:14:23 +0000
(08:14 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 26 Jan 2022 13:54:48 +0000
(14:54 +0100)
Add a note that ->shutdown is not called when ->activate fails. Just so
we are clear.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link:
https://lore.kernel.org/r/20220124071430.14907-5-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_port.c
patch
|
blob
|
history
diff --git
a/drivers/tty/tty_port.c
b/drivers/tty/tty_port.c
index 7644834640f1185a15d082a4d632412e0ec0db12..4282895ede9e161418ee66af19e7a77ab5ce613f 100644
(file)
--- a/
drivers/tty/tty_port.c
+++ b/
drivers/tty/tty_port.c
@@
-736,6
+736,9
@@
EXPORT_SYMBOL_GPL(tty_port_install);
* the device to be ready using tty_port_block_til_ready() (e.g. raises
* DTR/CTS and waits for carrier).
*
+ * Note that @port->ops->shutdown is not called when @port->ops->activate
+ * returns an error (on the contrary, @tty->ops->close is).
+ *
* Locking: Caller holds tty lock.
*
* Note: may drop and reacquire tty lock (in tty_port_block_til_ready()) so