From d6cfd2b302832928635e0a3d2c6b067766142a79 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Wed, 19 Aug 2020 10:06:41 -0600 Subject: 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 Change-Id: I0fa79b82223e6b97eede4130480156949d79f365 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2363466 Reviewed-by: Edward Hill --- chip/stm32/usb_pd_phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip') 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; -- cgit v1.2.1