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
|
@ -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 New Issue