diff options
author | Jiri Slaby <jslaby@suse.cz> | 2022-01-24 08:14:23 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-26 14:54:48 +0100 |
commit | d56738a38a65ab785557a1ccf8257a486d1b93b6 (patch) | |
tree | 8e86551284ea37210bd023399e44bd09151d90ac /drivers/tty/tty_port.c | |
parent | tty: add kfifo to tty_port (diff) | |
download | linux-d56738a38a65ab785557a1ccf8257a486d1b93b6.tar.xz linux-d56738a38a65ab785557a1ccf8257a486d1b93b6.zip |
tty: tty_port_open, document shutdown vs failed activate
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>
Diffstat (limited to 'drivers/tty/tty_port.c')
-rw-r--r-- | drivers/tty/tty_port.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/tty_port.c b/drivers/tty/tty_port.c index 7644834640f1..4282895ede9e 100644 --- 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 |