diff options
author | Jett Rink <jettrink@chromium.org> | 2020-08-14 12:23:20 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-19 23:10:40 +0000 |
commit | bb20158f5c2c837a6e780672add4fd49bebb833c (patch) | |
tree | b2e74a8bd9db5a2e3c1fddd33674d169d5cbde02 /common/usb_pd_protocol.c | |
parent | 91a31c82caff395e835134d3bb9d33aebe043cd0 (diff) | |
download | chrome-ec-bb20158f5c2c837a6e780672add4fd49bebb833c.tar.gz |
usbc: wake task on every state transition
Whenever we change state, we should continue to wake the USB
statemachine task up until is settles into a steady state were it is
waiting/polling on a timer or event.
BRANCH=none
BUG=b:163152687
TEST=Ran GRL PD3.0 test on Trembyle and did not see any regressions. It
did make a few tests pass that were failing before due to timing issues.
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: Idc3c1ae8d92a0f6a5cd4b82f9db6d7138d143f77
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2356954
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'common/usb_pd_protocol.c')
-rw-r--r-- | common/usb_pd_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 06ef2b630a..71343f1334 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -3125,7 +3125,7 @@ void pd_task(void *u) evt = task_wait_event(timeout); #ifdef CONFIG_USB_PD_TCPC_LOW_POWER - if (evt & PD_EXIT_LOW_POWER_EVENT_MASK) + if (evt & (PD_EXIT_LOW_POWER_EVENT_MASK | TASK_EVENT_WAKE)) exit_low_power_mode(port); if (evt & PD_EVENT_DEVICE_ACCESSED) handle_device_access(port); |