drivers: uart_nrfx_uarte: Prevent spurious UART_RX_BUF_REQUEST
drivers: uart_nrfx_uarte: Prevent spurious UART_RX_BUF_REQUEST

This is a follow-up to commit cf7dd4981fbd1490041cc4367d5d5aaf865b5dd0.

When disabling RX, it is necessary to clear the RXSTARTED event after
the ENDRX_STARTRX shortcut is deactivated, as the event might already
have been generated at this point. If the event is not cleared and
the disabling of RX is done from the user handler called in the context
of the ENDRX interrupt, a spurious UART_RX_BUF_REQUEST event will be
generated (although RX is already disabled) for which a corresponding
call to uart_rx_buf_rsp() would fail, as the second buffer is already
set. Depending on the application implementation, this can result in
other unexpected problems.

Signed-off-by: Andrzej Głąbek <6788b8d556a8a447102338fc996c42180ecff44e@nordicsemi.no>

zephyrproject-rtos/zephyr,galak/zephyr,finikorg/zephyr,galak/zephyr,nashif/zephyr,Vudentz/zephyr,galak/zephyr,finikorg/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,galak/zephyr,finikorg/zephyr,finikorg/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,nashif/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr