mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +00:00
Merge "ngd_slim: Ignore pm_runtime_get error when runtime-pm is not enabled"
This commit is contained in:
commit
ef65849b06
|
@ -369,7 +369,7 @@ static int ngd_xfer_msg(struct slim_controller *ctrl, struct slim_msg_txn *txn)
|
|||
* Setting runtime status to suspended clears the error
|
||||
* It also makes HW status cosistent with what SW has it here
|
||||
*/
|
||||
if (ret < 0) {
|
||||
if (pm_runtime_enabled(dev->dev) && ret < 0) {
|
||||
SLIM_ERR(dev, "slim ctrl vote failed ret:%d, state:%d",
|
||||
ret, dev->state);
|
||||
pm_runtime_set_suspended(dev->dev);
|
||||
|
|
Loading…
Reference in a new issue