mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
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: Corey Minyard <cminyard@mvista.com> Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
f4bbae27b3
commit
c9d934053d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue