commit | 1c7f82be69cbb165a16f66f7aaa12fa82d2566e9 | [log] [tgz] |
---|---|---|
author | Fabio Baltieri <fabiobaltieri@google.com> | Mon Feb 22 16:34:14 2021 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Feb 22 21:53:25 2021 |
tree | 1b4bbbc0462fdf280dc08b85fc9bd0a50e1fe22f | |
parent | 9f3511cd05094cad953f8427073d826bd2503b5e [diff] |
UPSTREAM: driver: uart_npcx: do not check for irq enable in irq ready functions Current implementation of uart_npcx_irq_{tx,rx}_ready always returns false if the respective interrupt enable bit is not set, which means that the api cannot be used if the interrupts are temporarily disabled for whatever reasons, breaking patterns such as [1]. Other uart drivers also seems to not have this check, this patch removes it from the NPCX driver too. [1] https://github.com/zephyrproject-rtos/zephyr/blob/master/drivers/console/uart_console.c#L549 Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> (cherry picked from commit 951c99c61ae4f2b5a4f5e0d72804b3592cbcff83) Change-Id: I32293db54b3d72e8741eedee92c3117f97bba401 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/2713062 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>