diff options
author | Diana Z <dzigterman@chromium.org> | 2021-02-24 17:02:52 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-16 21:36:15 +0000 |
commit | 91ad865eaf32295240b62b5fbbd402c2023c187c (patch) | |
tree | 8356a43777aa5384ff60e9e894206e17c041b6be /include/usb_pd.h | |
parent | 657c9f952da217d18e55fb139e5e59f3cd58c670 (diff) | |
download | chrome-ec-91ad865eaf32295240b62b5fbbd402c2023c187c.tar.gz |
TCPMv2: Debounce Vbus loss when FRS is enabled
A hub may send a Fast Role Swap signal when Vbus is less than vSafe5V,
so allow a 5ms debounce after Vbus loss for the signal to come in before
we declare the connection detached.
BRANCH=None
BUG=b:180453483
TEST=on voxel, confirm FRS behaves normally
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: If56106660c0a2bf82e28b91129bc9dd367ebc8fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2718838
Tested-by: Eric Herrmann <eherrmann@chromium.org>
Reviewed-by: Eric Herrmann <eherrmann@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index 81dbc3220a..ed15149441 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -246,6 +246,13 @@ enum pd_rx_errors { #define PD_T_SYSJUMP (1000*MSEC) /* 1s */ #define PD_T_PR_SWAP_WAIT (100*MSEC) /* tPRSwapWait 100ms */ +/* + * Non-spec timer to prevent going Unattached if Vbus drops before a partner FRS + * signal comes through. This timer should be shorter than tSinkDisconnect + * (40ms) to ensure we still transition out of Attached.SNK in time. + */ +#define PD_T_FRS_VBUS_DEBOUNCE (5*MSEC) + /* number of edges and time window to detect CC line is not idle */ #define PD_RX_TRANSITION_COUNT 3 #define PD_RX_TRANSITION_WINDOW 20 /* between 12us and 20us */ |