--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -683,6 +684,19 @@ static inline void tty_port_set_kopened(struct tty_port *port, bool val)
clear_bit(TTY_PORT_KOPENED, &port->iflags);
}
+static inline bool tty_port_nordy(struct tty_port *port)
+{
+ return test_bit(TTY_PORT_NORDY, &port->iflags);
+}
+
+static inline void tty_port_set_nordy(struct tty_port *port, bool val)
+{
+ if (val)
+ set_bit(TTY_PORT_NORDY, &port->iflags);
+ else
+ clear_bit(TTY_PORT_NORDY, &port->iflags);