mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "soc: qcom: spcom: return EINTR on wait interrupted"
This commit is contained in:
commit
3d41a73b02
1 changed files with 3 additions and 5 deletions
|
|
@ -502,11 +502,9 @@ static int spcom_rx(struct spcom_channel *ch,
|
|||
spcom_pr_warn("rpmsg channel is closing\n");
|
||||
ret = -ERESTART;
|
||||
goto exit_err;
|
||||
} else if (ret < 0 || timeleft == -ERESTARTSYS) {
|
||||
spcom_pr_dbg("wait interrupted: ret=%d, timeleft=%ld\n",
|
||||
ret, timeleft);
|
||||
if (timeleft == -ERESTARTSYS)
|
||||
ret = -ERESTARTSYS;
|
||||
} else if (ret < 0 || timeleft < 0) {
|
||||
spcom_pr_err("rx wait was interrupted!");
|
||||
ret = -EINTR; /* abort, not restartable */
|
||||
goto exit_err;
|
||||
} else if (ch->actual_rx_size) {
|
||||
spcom_pr_dbg("actual_rx_size is [%zu], txn_id %d\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue