Skip to content

Commit 7d5cbd7

Browse files
committed
Merge tag 'usb-serial-6.11-rc2' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-linus
Johan writes: USB-serial fix for 6.11-rc2 Here's a fix for an issue when using the usb_debug driver with Xen. This change has been in linux-next for a couple of days with no reported issues. * tag 'usb-serial-6.11-rc2' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial: USB: serial: debug: do not echo input by default
2 parents b1dad2f + 00af4f3 commit 7d5cbd7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/usb/serial/usb_debug.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ static void usb_debug_process_read_urb(struct urb *urb)
7676
usb_serial_generic_process_read_urb(urb);
7777
}
7878

79+
static void usb_debug_init_termios(struct tty_struct *tty)
80+
{
81+
tty->termios.c_lflag &= ~(ECHO | ECHONL);
82+
}
83+
7984
static struct usb_serial_driver debug_device = {
8085
.driver = {
8186
.owner = THIS_MODULE,
@@ -85,6 +90,7 @@ static struct usb_serial_driver debug_device = {
8590
.num_ports = 1,
8691
.bulk_out_size = USB_DEBUG_MAX_PACKET_SIZE,
8792
.break_ctl = usb_debug_break_ctl,
93+
.init_termios = usb_debug_init_termios,
8894
.process_read_urb = usb_debug_process_read_urb,
8995
};
9096

@@ -96,6 +102,7 @@ static struct usb_serial_driver dbc_device = {
96102
.id_table = dbc_id_table,
97103
.num_ports = 1,
98104
.break_ctl = usb_debug_break_ctl,
105+
.init_termios = usb_debug_init_termios,
99106
.process_read_urb = usb_debug_process_read_urb,
100107
};
101108

0 commit comments

Comments
 (0)