drivers: serial: Add error code to uart_rx_buf_rsp
API did not cover a case when uart_rx_buf_rsp is called when receiver is already disabled. It may happen if uart_rx_buf_rsp is called too late and active transfer is already finished. In that case -EACCES is returned. Some implementations already returned that error in that case. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
fb44188ebb
commit
2891256b67
|
@ -557,6 +557,7 @@ static inline int z_impl_uart_rx_enable(struct device *dev, uint8_t *buf,
|
|||
*
|
||||
* @retval -ENOTSUP If not supported.
|
||||
* @retval -EBUSY Next buffer already set.
|
||||
* @retval -EACCES Receiver is already disabled (function called too late?).
|
||||
* @retval 0 If successful, negative errno code otherwise.
|
||||
*
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue