mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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. -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQHbPq+cpGvN/peuzMLxc3C7H1lCAUCZqzlPgAKCRALxc3C7H1l CEU7AQDrMHfvMa3ZOoR3A/i7VM3Nwy4hKTk+xAD7Y6st3L17YAD+JZ6OykxBzxh0 xINnvnaZBTtRHf8cirUkk5SUJW7Mzwg= =jrO8 -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
7d5cbd799a
@ -76,6 +76,11 @@ static void usb_debug_process_read_urb(struct urb *urb)
|
||||
usb_serial_generic_process_read_urb(urb);
|
||||
}
|
||||
|
||||
static void usb_debug_init_termios(struct tty_struct *tty)
|
||||
{
|
||||
tty->termios.c_lflag &= ~(ECHO | ECHONL);
|
||||
}
|
||||
|
||||
static struct usb_serial_driver debug_device = {
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
@ -85,6 +90,7 @@ static struct usb_serial_driver debug_device = {
|
||||
.num_ports = 1,
|
||||
.bulk_out_size = USB_DEBUG_MAX_PACKET_SIZE,
|
||||
.break_ctl = usb_debug_break_ctl,
|
||||
.init_termios = usb_debug_init_termios,
|
||||
.process_read_urb = usb_debug_process_read_urb,
|
||||
};
|
||||
|
||||
@ -96,6 +102,7 @@ static struct usb_serial_driver dbc_device = {
|
||||
.id_table = dbc_id_table,
|
||||
.num_ports = 1,
|
||||
.break_ctl = usb_debug_break_ctl,
|
||||
.init_termios = usb_debug_init_termios,
|
||||
.process_read_urb = usb_debug_process_read_urb,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user