diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-01-04 09:57:53 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-06 22:19:22 +0000 |
commit | 5348dff126127a1fbecc38b8605017ff1b2a4e5a (patch) | |
tree | 5d498545036f72eab1314cc41dfeddc5aff209bc /include/usb_pd.h | |
parent | 2b364421a428ba3c1afdf193498697f7e4267fae (diff) | |
download | chrome-ec-5348dff126127a1fbecc38b8605017ff1b2a4e5a.tar.gz |
pd: Add NoResponseTimer to disconnect after no response
Add NoResponseTimer to go to disconnected state after some number
of hard resets with the port partner non-responsive. This only takes
affect when the port partner is known to be PD capable, i.e. has sent
us PD communications in the past. This is useful as a last resort to
attempt to restore PD communications with a port partner.
BUG=chrome-os-partner:34976
BRANCH=samus
TEST=load onto two samus', connect with C to C cable, and let them
form a PD contract, then on one side disable PD comms with "pd enable 0"
and from the other side initiate some PD traffic, such as "pd 1 soft".
See that the side with PD communications enabled sends two hard resets
and then goes to disconnected state, then goes to discovery state and
acts as if a non-PD capable device is attached.
Change-Id: Id40ce7eb05b8b7ae6a4f70b9d08ce6cad0d471fe
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/238300
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index b9e4ee0d6e..0dccc6695b 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -130,6 +130,7 @@ enum pd_errors { #define PD_T_SRC_RECOVER_MAX (1000*MSEC) /* 1000ms */ #define PD_T_SRC_TURN_ON (275*MSEC) /* 275ms */ #define PD_T_SAFE_0V (650*MSEC) /* 650ms */ +#define PD_T_NO_RESPONSE (5500*MSEC) /* between 4.5s and 5.5s */ /* number of edges and time window to detect CC line is not idle */ #define PD_RX_TRANSITION_COUNT 3 |