summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-08-19 10:06:41 -0600
committerCommit Bot <commit-bot@chromium.org>2020-08-21 23:49:17 +0000
commitd6cfd2b302832928635e0a3d2c6b067766142a79 (patch)
tree5a210dbae9b8f60bf1e752f33ee66e289861b81c /chip
parent5c8501c341f1e73278a8f440c708c478911a6bda (diff)
downloadchrome-ec-d6cfd2b302832928635e0a3d2c6b067766142a79.tar.gz
usbc: remove PD_EVENT_SM in favor of task_wake
We have used both methods of waking up the PD tasks to process the next state: PD_EVENT_SM and TASK_EVENT_WAKE. They effectively do the same thing and it is more straightforward to only have one way to wake the task up with the sole purpose of re-evaluating the current state. BRANCH=none BUG=none TEST=No regressions on GRL testing. Signed-off-by: Jett Rink <jettrink@chromium.org> Change-Id: I0fa79b82223e6b97eede4130480156949d79f365 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2363466 Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/stm32/usb_pd_phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/usb_pd_phy.c b/chip/stm32/usb_pd_phy.c
index 7f34a1448b..b53c5cfeeb 100644
--- a/chip/stm32/usb_pd_phy.c
+++ b/chip/stm32/usb_pd_phy.c
@@ -456,7 +456,7 @@ void pd_rx_handler(void)
#ifdef CONFIG_USB_CTVPD
/* Charge-Through Side detach event */
if (pending & EXTI_COMP2_MASK) {
- task_set_event(PD_PORT_TO_TASK_ID(0), PD_EVENT_SM, 0);
+ task_wake(PD_PORT_TO_TASK_ID(0));
/* Clear interrupt */
STM32_EXTI_PR = EXTI_COMP2_MASK;
pending &= ~EXTI_COMP2_MASK;