Commit 766ecae1 authored by Łukasz Bartosik's avatar Łukasz Bartosik Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: 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: 4521f161 ("xhci: dbctty: split dbc tty driver registration and unregistration functions.")
Cc: stable@kernel.org
Signed-off-by: default avatarŁukasz Bartosik <ukaszb@chromium.org>
Signed-off-by: default avatarMathias 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2b857d69)

Bug: 419244002
Bug: 422357008
Test: Connect host and DUT over USB3-A-to-A debug cable
      Start ADB server on host
      Multiple times disconnect/reconnect the debug cable from
      host and after each reconnection issue "adb shell uname -a"
      and verify the command was succesfull

Change-Id: Ieb5c88500814bf1b6c1cbf57bf3f537d54954e3c
Signed-off-by: default avatarŁukasz Bartosik <ukaszb@google.com>
parent 8ea40f52
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment