summaryrefslogtreecommitdiff
path: root/common/usb_pd_dual_role.c
diff options
context:
space:
mode:
authorRuibin Chang <ruibin.chang@ite.com.tw>2020-10-14 14:13:12 +0800
committerCommit Bot <commit-bot@chromium.org>2020-10-22 06:23:27 +0000
commit4fd0b5f12d0e4ab39c06b92f35ea5ddb194c1c8a (patch)
treea3f7ea92c2117aa98da04c9a1808b4b387cb38bc /common/usb_pd_dual_role.c
parentb81af1233e23497ca8317f2669947398d0142e12 (diff)
downloadchrome-ec-4fd0b5f12d0e4ab39c06b92f35ea5ddb194c1c8a.tar.gz
TCPMv2: don't set PD_PROCESS_INTERRUPT event to idle task
On drawcia, port 1 has PD INT task (port 0 doesn't have), so CONFIG_HAS_TASK_PD_INT is defined. When we initial port 0 pd task, we'll set PD_PROCESS_INTERRUPT event to idle task in schedule_deferred_pd_interrupt(), because pd_int_task_id [0] value is 0. So I add condition to check PD INT task id before set the event. BUG=none BRANCH=none TEST=On drawcia, confirm idle task event is 0x0000 by "taskinfo" cmd Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw> Change-Id: I821008255723815ab96aa5bf025243051fe2ca1e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2474055 Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Diffstat (limited to 'common/usb_pd_dual_role.c')
0 files changed, 0 insertions, 0 deletions