Commit c9d93405 authored by Johan Hovold's avatar Johan Hovold

USB: serial: report unsupported break signalling

Instead of returning success when a driver does not support break
signalling, return an error to let user space know and to avoid waiting
when break is not supported.
Tested-by: default avatarCorey Minyard <cminyard@mvista.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent f4bbae27
......@@ -541,7 +541,7 @@ static int serial_break(struct tty_struct *tty, int break_state)
if (port->serial->type->break_ctl)
return port->serial->type->break_ctl(tty, break_state);
return 0;
return -ENOTTY;
}
static int serial_proc_show(struct seq_file *m, void *v)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment