cpu/esp32: fix pm_reboot function#18207
Conversation
|
CI compilation failed only because of the strange hash problem which is only caused by the additional |
benpicco
left a comment
There was a problem hiding this comment.
Change makes sense, but this could need a comment reassuring future readers that calling uart_tx_wait_idle() on non-initialized UARTs is fine to avoid raising eyebrows.
Ok, I will add a comment. Since the PR and this change is so small I guess that I can squash directly. I also guess that we could skip compilation for this change then to avoid a further complete CI compilation. |
3079162 to
eb2acc6
Compare
eb2acc6 to
0622d45
Compare
Contribution description
This PR fixes the blocking when the
rebootcommand is used in shell under certain conditions and thepm_rebootfunction tries to reboot the system.In the test run of PR #18202 in CI the test of
tests/shellfailed because the system blocks when executing commandrebootif another command was executed before, see the log, see the log. The reason for this is that the system will block while waiting for the UART interfaces to become idle.Testing procedure
Make
BOARD=esp32-wroom-32 make -C tests/shell flash termand execute:Without this PR, the system blocks on second
rebootcommand. With this PR, the command sequence works as expected.Execute
BOARD=esp32-wroom-32 make -C tests/shell testWithout this PR, the test fails. With this PR, the test should succeed.
Issues/PRs references
Found when testing PR #18202