drivers: nrfx_uarte: uarte_pm_suspend, please return -EAGAIN instead of kill the device with ASSERT

uart_nrfx_uarte.c, uarte_pm_suspend checks some preconditions with __ASSERT_NO_MSG. 

In my experience that causes unintended and not required crashes.

If the precondition is not full-filled, returning -EAGAIN would be a better choice.

See https://github.com/zephyrproject-rtos/zephyr/issues/105506 also.

Parents Reply Children
No Data
Related