summaryrefslogtreecommitdiff
path: root/board/morphius
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2020-07-21 22:18:48 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-24 00:29:41 +0000
commitccc0145eeb4530c53a84807ca2ae4691a8534130 (patch)
tree02e8dee72150441191f20b441406c13e29e78a4e /board/morphius
parent7b3bb434dddc391bd8df67739fee6be25b4f8b70 (diff)
downloadchrome-ec-ccc0145eeb4530c53a84807ca2ae4691a8534130.tar.gz
keyboard_8042: Send aux data to host from interrupt context.
Add a queue for aux (PS2) RX data so that i8042_send_to_host() is not called from interrupt context. i8042_send_to_host() locks to_host_mutex which must not be done in interrupt context. BUG=b:160975910 BRANCH=none TEST=PS2 still works Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: Ic4403d571592037173e64286aa013720f85acc9a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2306289 Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Diffstat (limited to 'board/morphius')
-rw-r--r--board/morphius/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/morphius/board.c b/board/morphius/board.c
index f7674273d2..e5d7f4eb48 100644
--- a/board/morphius/board.c
+++ b/board/morphius/board.c
@@ -286,7 +286,7 @@ void setup_fw_config(void)
/* Enable PS2 power interrupts */
gpio_enable_interrupt(GPIO_EN_PWR_TOUCHPAD_PS2);
- ps2_enable_channel(NPCX_PS2_CH0, 1, send_aux_data_to_host);
+ ps2_enable_channel(NPCX_PS2_CH0, 1, send_aux_data_to_host_interrupt);
setup_mux();