diff options
author | Yilun Lin <yllin@google.com> | 2019-07-22 17:08:35 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-07 05:33:26 +0000 |
commit | b3ecf7d9f83f156f8c2c0507488d700f6b0cbb66 (patch) | |
tree | 3a25b570e18d6ac8ed84c3fbaeb4228b1593f373 /chip | |
parent | 65beadbaafc88a9c034b23fb9edee6bdcecb4f91 (diff) | |
download | chrome-ec-b3ecf7d9f83f156f8c2c0507488d700f6b0cbb66.tar.gz |
mt_scp/ipi: only invoke interrupt when ipi ready
IPC interrupt should only be invoked when the task inited and informing
AP that SCP is ready.
TEST=Boot SCP, and doesn't see the process stack overflow.
BUG=b:137920815
BRANCH=none
Change-Id: Ibe926b77705718a986c3b090227328b569cd9b59
Signed-off-by: Yilun Lin <yllin@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1736411
Reviewed-by: Erin Lo <erin.lo@mediatek.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Yilun Lin <yllin@chromium.org>
Tested-by: Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/mt_scp/ipi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/mt_scp/ipi.c b/chip/mt_scp/ipi.c index 8819586a2f..544ebb5d75 100644 --- a/chip/mt_scp/ipi.c +++ b/chip/mt_scp/ipi.c @@ -110,7 +110,7 @@ void ipi_enable_irq(int irq) task_enable_irq(irq); - if (pending_ipc) + if (ipi_ready && pending_ipc) /* * IPC may be triggered while SCP_IRQ_IPC0 was disabled. * AP will still updates SCP_GIPC_IN. |