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:
Johan Hovold 2023-06-04 14:35:05 +02:00
parent f4bbae27b3
commit c9d934053d
1 changed files with 1 additions and 1 deletions

View File

@ -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)