diff options
author | Jett Rink <jettrink@chromium.org> | 2018-10-16 10:36:19 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-14 16:56:23 -0800 |
commit | 9634e023470dba161b3a85d5e8344610dcb9eec9 (patch) | |
tree | b01f7a6b3f4579ca48fdff53f717d7edf2ba61ab /board/atlas | |
parent | b072948de622962e77c03f0a1853432dc6633626 (diff) | |
download | chrome-ec-9634e023470dba161b3a85d5e8344610dcb9eec9.tar.gz |
usb-c: use higher priority task for interrupts
This should be the last step to make all boards on ToT follow
go/usb-pd-slow-response-time. Theses boards all have the higher priority
tasks, but they aren't being used since the tcpc interrupt wasn't
scheduling calls on it.
BRANCH=none
BUG=b:112088135
TEST=builds
Change-Id: I2c39e661e804f88edd5b34636b93e6e63a5af57f
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1283452
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/atlas')
-rw-r--r-- | board/atlas/board.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/board/atlas/board.c b/board/atlas/board.c index a3795eb98d..242003e8ea 100644 --- a/board/atlas/board.c +++ b/board/atlas/board.c @@ -51,17 +51,20 @@ static void tcpc_alert_event(enum gpio_signal signal) { - if ((signal == GPIO_USB_C0_PD_INT_ODL) && - !gpio_get_level(GPIO_USB_C0_PD_RST_L)) - return; - else if ((signal == GPIO_USB_C1_PD_INT_ODL) && - !gpio_get_level(GPIO_USB_C1_PD_RST_L)) + int port = -1; + + switch (signal) { + case GPIO_USB_C0_PD_INT_ODL: + port = 0; + break; + case GPIO_USB_C1_PD_INT_ODL: + port = 1; + break; + default: return; + } -#ifdef HAS_TASK_PDCMD - /* Exchange status with TCPCs */ - host_command_pd_send_status(PD_CHARGE_NO_CHANGE); -#endif + schedule_deferred_pd_interrupt(port); } #include "gpio_list.h" |