diff options
author | Jett Rink <jettrink@chromium.org> | 2018-10-16 08:23:37 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-18 19:01:26 -0700 |
commit | bd20798aa85a0bbb2dca3b9ce9a9d563e215fa0c (patch) | |
tree | c17e00f64b2608c2f099d661ddfdd21e1bb90e1d /common | |
parent | f4d4224e4e3f0dd2137c9afcf08a5a949669a568 (diff) | |
download | chrome-ec-bd20798aa85a0bbb2dca3b9ce9a9d563e215fa0c.tar.gz |
dragonegg: make PD interrupt use higher priority task
Start using the higher priority task to handle PD interrupts
from C2.
Remove higher priority tasks for C0 and C1 since they are handle by
chip code in interrupt context method already.
BRANCH=none
BUG=b:112088135
TEST=dragonegg PD still works
Change-Id: I90f2557b73ce6331f012057839e5de22646183c6
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1283243
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/usb_pd_protocol.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 4dab66f8df..e9e86be32b 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -2461,7 +2461,10 @@ static int pd_restart_tcpc(int port) } #endif -#ifdef HAS_TASK_PD_INT_C0 +/* High-priority interrupt tasks implementations */ +#if defined(HAS_TASK_PD_INT_C0) || defined(HAS_TASK_PD_INT_C1) || \ + defined(HAS_TASK_PD_INT_C2) + /* Events for pd_interrupt_handler_task */ #define PD_PROCESS_INTERRUPT (1<<0) @@ -2508,7 +2511,7 @@ void pd_interrupt_handler_task(void *p) } } } -#endif /* HAS_TASK_PD_INT_C0 */ +#endif /* HAS_TASK_PD_INT_C0 || HAS_TASK_PD_INT_C1 || HAS_TASK_PD_INT_C2 */ void pd_task(void *u) { |