summaryrefslogtreecommitdiff
path: root/include/usb_tc_sm.h
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2019-10-11 16:46:01 -0600
committerCommit Bot <commit-bot@chromium.org>2019-10-15 22:23:11 +0000
commit246e451f5229a392bbcded28eaa16c8c47c4d5d1 (patch)
treeb11f75dcf1da3f760d6a1d77378282474c2cda8d /include/usb_tc_sm.h
parent5a649192d901cdf099ac77d81791cdf647f97d52 (diff)
downloadchrome-ec-246e451f5229a392bbcded28eaa16c8c47c4d5d1.tar.gz
usbc: remove evt_timeout from struct type_c
Simplify the pd_task loop timeout by making it a fixed 5 milliseconds. If there is nothing to do then it shouldn't take long to realize this. This allows removal of evt_timeout, tc_set_timeout, tc_get_timeout. BRANCH=none BUG=none TEST=usbc unit tests (make -j runhosttests) Change-Id: I067309b191e5118fbe9e89a92a650fa837fb75fa Signed-off-by: Edward Hill <ecgh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1857216 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/usb_tc_sm.h')
-rw-r--r--include/usb_tc_sm.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/usb_tc_sm.h b/include/usb_tc_sm.h
index 38fbe270a0..d8a68b08d3 100644
--- a/include/usb_tc_sm.h
+++ b/include/usb_tc_sm.h
@@ -107,14 +107,6 @@ void tc_set_data_role(int port, int role);
void set_usb_mux_with_current_data_role(int port);
/**
- * Get loop timeout value
- *
- * @param port USB-C port number
- * @return time in ms
- */
-uint64_t tc_get_timeout(int port);
-
-/**
* Policy Engine informs the Type-C state machine if the port partner
* is dualrole power.
*
@@ -160,14 +152,6 @@ void tc_partner_dr_data(int port, int en);
void tc_pd_connection(int port, int en);
/**
- * Set loop timeout value
- *
- * @param port USB-C port number
- * @timeout time in ms
- */
-void tc_set_timeout(int port, uint64_t timeout);
-
-/**
* Initiates a Power Role Swap from Attached.SRC to Attached.SNK. This function
* has no effect if the current Type-C state is not Attached.SRC.
*