summaryrefslogtreecommitdiff
path: root/include/task.h
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-04-05 11:11:15 -0600
committerchrome-bot <chrome-bot@chromium.org>2019-04-10 18:06:28 -0700
commit7dedbd0990accd2f8a127501697d55d52dc80658 (patch)
tree9f313780237b12420328bf5d21db1a45973fba5d /include/task.h
parent7b9d35f9e5945f08819c3f62148d88e53d07621d (diff)
downloadchrome-ec-7dedbd0990accd2f8a127501697d55d52dc80658.tar.gz
ish: wait for heci bus instead of error
Callers of send_heci don't need to all implement retry logic for a unavailable bus. Ensure the send call blocks until the bus is ready. This is not a complete fix for b:129937881 since I still saw issue with this change. This change is still worthwhile. BRANCH=none BUG=b:129937881 TEST=Bus failure between ISH and AP is greatly improved with this change. Change-Id: Ia493b28146b30813fd737da341e7277e130ad619 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1554844 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'include/task.h')
-rw-r--r--include/task.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/task.h b/include/task.h
index 74bb7efe64..46a340b898 100644
--- a/include/task.h
+++ b/include/task.h
@@ -14,7 +14,10 @@
/* Task event bitmasks */
/* Tasks may use the bits in TASK_EVENT_CUSTOM for their own events */
-#define TASK_EVENT_CUSTOM(x) (x & 0x0003ffff)
+#define TASK_EVENT_CUSTOM(x) (x & 0x0001ffff)
+
+/* Used to signal that IPC layer is available for sending new data */
+#define TASK_EVENT_IPC_READY BIT(17)
#define TASK_EVENT_PD_AWAKE BIT(18)