Skip to content

Commit c9d9340

Browse files
committed
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>
1 parent f4bbae2 commit c9d9340

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/serial/usb-serial.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ static int serial_break(struct tty_struct *tty, int break_state)
541541
if (port->serial->type->break_ctl)
542542
return port->serial->type->break_ctl(tty, break_state);
543543

544-
return 0;
544+
return -ENOTTY;
545545
}
546546

547547
static int serial_proc_show(struct seq_file *m, void *v)

0 commit comments

Comments
 (0)