Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cdc-acm: Add DISABLE_ECHO quirk for Microchip/SMSC chip

USB_DEVICE(0x0424, 0x274e) can send data before cdc_acm is ready,
causing garbage chars on the TTY causing stray input to the shell
and/or login prompt.

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
Cc: stable@vger.kernel.org
Acked-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20200605105418.22263-1-joakim.tjernlund@infinera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Joakim Tjernlund and committed by
Greg Kroah-Hartman
03894573 1ddcb71a

+2
+2
drivers/usb/class/cdc-acm.c
··· 1689 1689 1690 1690 static const struct usb_device_id acm_ids[] = { 1691 1691 /* quirky and broken devices */ 1692 + { USB_DEVICE(0x0424, 0x274e), /* Microchip Technology, Inc. (formerly SMSC) */ 1693 + .driver_info = DISABLE_ECHO, }, /* DISABLE ECHO in termios flag */ 1692 1694 { USB_DEVICE(0x076d, 0x0006), /* Denso Cradle CU-321 */ 1693 1695 .driver_info = NO_UNION_NORMAL, },/* has no union descriptor */ 1694 1696 { USB_DEVICE(0x17ef, 0x7000), /* Lenovo USB modem */