summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-09-08 11:34:42 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-19 15:18:08 -0700
commit33046e7d51af5d521235c79dcddc3308c71189db (patch)
tree9dfdd80fcd1c3cc98270e8adac0030ae72a4856b /include/common.h
parent9d1910f5a0772b06c3c48a5c5f3c3412b0a1b682 (diff)
downloadchrome-ec-33046e7d51af5d521235c79dcddc3308c71189db.tar.gz
common: accel: Add error code for irq handler
When IRQ handler is not processing any event raised, return NOT_HANDLED. Without this change, any event would set the light sensor process timestamp and, if the light sensor frequency was lower than BM160 fifo interrupt frequency, we would never read from the light sensor. BRANCH=smaug BUG=chrome-os-partner:43800 TEST=Compile. Check that light sensor data get updated. Change-Id: I302f80c5cd9b4f3c926362fdafdc8b5074cabb60 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/298686
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index a372b8cf0d..fe51a9b79b 100644
--- a/include/common.h
+++ b/include/common.h
@@ -116,6 +116,8 @@ enum ec_error_list {
EC_ERROR_PARAM9 = 19,
EC_ERROR_PARAM_COUNT = 20, /* Wrong number of params */
+ EC_ERROR_NOT_HANDLED = 21, /* Interrupt event not handled */
+
/* Module-internal error codes may use this range. */
EC_ERROR_INTERNAL_FIRST = 0x10000,
EC_ERROR_INTERNAL_LAST = 0x1FFFF