mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02: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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user