xhci: dbctty: disable ECHO flag by default
authorŁukasz Bartosik <ukaszb@chromium.org>
Fri, 27 Jun 2025 14:41:21 +0000 (17:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 28 Jun 2025 15:20:22 +0000 (17:20 +0200)
commit2b857d69a5e116150639a0c6c39c86cc329939ee
treea5df7beb8119554da479f0cc7195df65d888de21
parentcd65ee81240e8bc3c3119b46db7f60c80864b90b
xhci: dbctty: disable ECHO flag by default

When /dev/ttyDBC0 device is created then by default ECHO flag
is set for the terminal device. However if data arrives from
a peer before application using /dev/ttyDBC0 applies its set
of terminal flags then the arriving data will be echoed which
might not be desired behavior.

Fixes: 4521f1613940 ("xhci: dbctty: split dbc tty driver registration and unregistration functions.")
Cc: stable <stable@kernel.org>
Signed-off-by: Łukasz Bartosik <ukaszb@chromium.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/stable/20250610111802.18742-1-ukaszb%40chromium.org
Link: https://lore.kernel.org/r/20250627144127.3889714-4-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgtty.c