diff options
author | madhusudanarao amara <madhusudanarao.amara@intel.corp-partner.google.com> | 2021-07-28 12:26:30 +0530 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-06 13:27:40 +0000 |
commit | f0985f8a11585f6a704aa94a8354bd5b934619ac (patch) | |
tree | 430aa4cfd58ee3a91d0af596a646ec842695e935 /driver | |
parent | faa5ff511aa464f5fee621eef7b8bf4cdeb26ad5 (diff) | |
download | chrome-ec-f0985f8a11585f6a704aa94a8354bd5b934619ac.tar.gz |
DP/TBT/USB4: Retimer WA resolved Brya TBT lane bonding issue in AP mode
In AP Mode DP exit to TBT entry is causing TBT lane bonding issue.
Issue is not seen by calling the retimer reset as WA at the time of
disconnect mode configuration.
Revert this patch after getting the actual fix.
BUG=b:193402306
BRANCH=None
TEST=Checked TBT enumeration in AP Mode
TOREVERT=b:195375738
Signed-off-by: madhusudanarao amara <madhusudanarao.amara@intel.corp-partner.google.com>
Change-Id: Ia22e061a863940b2a13ad5a38f4fe130737c5c20
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3058157
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/retimer/bb_retimer.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/driver/retimer/bb_retimer.c b/driver/retimer/bb_retimer.c index 4f5a240869..919e278a8b 100644 --- a/driver/retimer/bb_retimer.c +++ b/driver/retimer/bb_retimer.c @@ -365,6 +365,18 @@ static void retimer_set_state_ufp(int port, mux_state_t mux_state, } /** + * Driver interface function: reset retimer + */ +__overridable int bb_retimer_reset(const struct usb_mux *me) +{ + /* + * TODO(b/193402306, b/195375738): Remove this once transition to + * QS Silicon is complete + */ + return EC_SUCCESS; +} + +/** * Driver interface functions */ static int retimer_set_state(const struct usb_mux *me, mux_state_t mux_state) @@ -463,6 +475,14 @@ static int retimer_set_state(const struct usb_mux *me, mux_state_t mux_state) else retimer_set_state_ufp(port, mux_state, &set_retimer_con); + /* + * In AP Mode DP exit to TBT entry is causing TBT lane bonding issue + * Issue is not seen by calling the retimer reset as WA at the time of + * disconnect mode configuration + */ + if (mux_state == USB_PD_MUX_NONE) + bb_retimer_reset(me); + /* Writing the register4 */ return bb_retimer_write(me, BB_RETIMER_REG_CONNECTION_STATE, set_retimer_con); |