mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
Merge "interconnect: qcom: Ignore -EBUSY for AMC requests"
This commit is contained in:
commit
fbaf44464c
1 changed files with 13 additions and 1 deletions
|
|
@ -285,7 +285,19 @@ int qcom_icc_bcm_voter_commit(struct bcm_voter *voter)
|
|||
|
||||
ret = rpmh_write_batch(voter->dev, RPMH_ACTIVE_ONLY_STATE,
|
||||
cmds, commit_idx);
|
||||
if (ret) {
|
||||
|
||||
/*
|
||||
* Ignore -EBUSY for AMC requests, since this can only happen for AMC
|
||||
* requests when the RSC is in solver mode. We can only be in solver
|
||||
* mode at the time of request for secondary RSCs (e.g. Display RSC),
|
||||
* since the primary Apps RSC is only in solver mode while
|
||||
* entering/exiting power collapse when SW isn't running. The -EBUSY
|
||||
* response is expected in solver and is a non-issue, since we just
|
||||
* want the request to apply to the WAKE set in that case instead.
|
||||
* Interconnect doesn't know when the RSC is in solver, so just always
|
||||
* send AMC and ignore the harmless error response.
|
||||
*/
|
||||
if (ret && ret != -EBUSY) {
|
||||
pr_err("Error sending AMC RPMH requests (%d)\n", ret);
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue