summaryrefslogtreecommitdiff
path: root/include/usb_pe_sm.h
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2021-02-19 17:02:35 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-26 23:11:10 +0000
commit8a5a03850faabdc12c4d9b7552071c444c709ea0 (patch)
tree5c941a8526f3e53464da502c92eeb2a05fa86c4f /include/usb_pe_sm.h
parent04a169ff52ba84c97a34709d3c26dc9657c6669c (diff)
downloadchrome-ec-8a5a03850faabdc12c4d9b7552071c444c709ea0.tar.gz
TCPMv2: Reset discovery events on AP reset
When the AP resets, reset the SOP and SOP' discovery events so it knows there is completed discovery information to consume. Additionally, remove the requirement that events only be set from the port's PD task. Since this is just an atomic or of events and the setting of a host event, it should be safe to do from other tasks. BRANCH=None BUG=b:179505381 TEST=on galtic, verify events are reset after reboot with: - Apple 3-in-1 (SOP identity, no SOP') - TBT dock (both SOP and SOP' identity) - Active cable tied to another chromebook (SOP' identity, no SOP) Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ib2c49854fd4269c65e771565210fe88222c6e848 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2708785 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/usb_pe_sm.h')
-rw-r--r--include/usb_pe_sm.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/usb_pe_sm.h b/include/usb_pe_sm.h
index 3e8f0e85b4..7be15f94bf 100644
--- a/include/usb_pe_sm.h
+++ b/include/usb_pe_sm.h
@@ -175,13 +175,5 @@ const char *pe_get_current_state(int port);
*/
uint32_t pe_get_flags(int port);
-/**
- * Sets event for PE layer to report and triggers a notification up to the AP.
- *
- * @param port USB-C port number
- * @param event_mask of bits to set (PD_STATUS_EVENT_* events in ec_commands.h)
- */
-void pe_notify_event(int port, uint32_t event_mask);
-
#endif /* __CROS_EC_USB_PE_H */