summaryrefslogtreecommitdiff
path: root/chip/ish/uart.c
diff options
context:
space:
mode:
authorHyungwoo Yang <hyungwoo.yang@intel.com>2019-01-29 17:09:05 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-31 14:06:22 -0800
commitbbb6461b154364e2f5acabe3506a358db32d50e8 (patch)
tree944e83a647985a9f25d3369acc5ad7cc98e21214 /chip/ish/uart.c
parenta180facf4128a02e6fe614ba988c551593ce0611 (diff)
downloadchrome-ec-bbb6461b154364e2f5acabe3506a358db32d50e8.tar.gz
ish: remove unnecessary interrupt_enable() call
interrupt is already enabled when the first task(hook_task) scheduled. this patch removes unnecessary interrupt_enable(). BRANCH=none BUG=none TEST=verified in Atlas platform Change-Id: I4b1458a6ad2d72347720630181ef7e35bc7fc66b Reviewed-on: https://chromium-review.googlesource.com/1444538 Commit-Ready: Hyungwoo Yang <hyungwoo.yang@intel.com> Tested-by: Hyungwoo Yang <hyungwoo.yang@intel.com> Reviewed-by: Hyungwoo Yang <hyungwoo.yang@intel.com> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/ish/uart.c')
-rw-r--r--chip/ish/uart.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/chip/ish/uart.c b/chip/ish/uart.c
index e0530a223a..5076f5eeaf 100644
--- a/chip/ish/uart.c
+++ b/chip/ish/uart.c
@@ -164,8 +164,6 @@ static void uart_hw_init(enum UART_PORT id)
uint8_t fcr = 0;
struct uart_ctx *ctx = &uart_ctx[id];
- interrupt_disable();
-
/* Calculate baud rate divisor */
divisor = (ctx->input_freq / ctx->baud_rate) >> 4;
@@ -205,7 +203,6 @@ static void uart_hw_init(enum UART_PORT id)
#else
REG8(IER(ctx->id)) = IER_RECV;
#endif
- interrupt_enable();
}
static void uart_stop_hw(enum UART_PORT id)