summaryrefslogtreecommitdiff
path: root/common/usbc_intr_task.c
Commit message (Collapse)AuthorAgeFilesLines
* usbc_intr_task: Include-what-you-use scrubCaveh Jalali2021-06-261-1/+8
| | | | | | | | | | | | | | | | This updates the list of header files included usbc_intr_task.c. Most relevant is the removal of usb_mux.h since the USB MUX is not relevant here. BRANCH=none BUG=b:192010784 TEST=buildall passes Change-Id: I074e80cf48e13e36c207224ce5a8a09f260ae1c7 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2987161 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* PD_INT: Add ability to process non-TCPC alerts in PD_INTDiana Z2021-04-061-1/+9
| | | | | | | | | | | | | | | | Some boards may have other chips sharing the TCPC interrupt line, in which case their alerts may need to be handled at the same priority as the TCPC itself. Otherwise, it becomes difficult to respond quickly to TCPC interrupts. BRANCH=None BUG=b:182534117,b:183679237 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I905f20eeb0dd89c8516de31005d402a890906595 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2803460 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* common: Add new shared PD interrupt handlerCaveh Jalali2021-02-251-43/+130
| | | | | | | | | | | | | | | | | This adds a new TCPC interrupt handler task that knows how to deal with TCPCs that share a single interrupt line. ec.tasklist for this handler takes a port mask instead of a port number as a task startup argument. The main quirk of shared interrupts is that interrupts must be serviced on multiple devcies in order to clear the interrupt into the EC. BRANCH=none BUG=b:173575131 TEST=buildall passes Change-Id: I6f9f0ce471092741274d8a1542510d92100f6698 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2700314
* task_set_event: remove the wait argumentDawid Niedzwiecki2020-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | There is an option in the task_set_event function which force the calling task to wait for an event. However, the option is never used thus remove it. This also will help in the Zephyr migration process. BUG=b:172360521 BRANCH=none TEST=make buildall Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Ic152fd3d6862d487bcc0024c48d136556c0b81bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521599 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* TCPMv2: don't set PD_PROCESS_INTERRUPT event to idle taskRuibin Chang2020-10-221-1/+7
| | | | | | | | | | | | | | | | | | | | 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>
* cleanup: Move High-priority interrupt task to a separate fileVijay Hiremath2020-09-091-0/+105
BUG=none BRANCH=none TEST=make buildall -j Change-Id: I63a964721a5471d6a00894cb0cb94e9656c10893 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2389325 Reviewed-by: Poornima Tom <poornima.tom@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org>