When the remote processor have hit an fatal error, it will not perform
the stop-ack handshake. So we have to finish the shutdown process to not
leave the remote processor in a dangling state (stopping us from
bringing it up again).
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
gpiod_set_value(qproc->stop_gpio, 1);
ret = wait_for_completion_timeout(&qproc->stop_done, msecs_to_jiffies(1000));
- if (ret == 0) {
+ if (ret == 0)
dev_err(qproc->dev, "timed out on wait\n");
- return ret;
- }
gpiod_set_value(qproc->stop_gpio, 0);