Commit 0752528
committed
drivers: serial: nrf_sw_lpuart: Fix case of flushing RX FIFO
In Bluetooth HCI there is a case where uart_fifo_read is called
not from the UART interrupt context. If that happens and there is
pending UART that then LPUART was not able to reset the receiver.
Case like that happend when HCI device sends data to the host core
after host core got reset but before HCI device is reset by the
host. Calling uart_fifo_read not from UART interrupt handler is a
violation of the API but it has been used like that to drain
UART FIFO for years and it has been useful so LPUART adapts to
it.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>1 parent dd805e7 commit 0752528
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
995 | | - | |
| 995 | + | |
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
| |||
0 commit comments