Skip to content

Commit

Permalink
samsung-iommu: set power.must_resume to true in the suspend path
Browse files Browse the repository at this point in the history
driver relies on matching pair of calls to suspend and resume. Need to set
the power.must_resume status bit to true to avoid skipping resume.

Bug: 187963504
Signed-off-by: Thierry Strudel <[email protected]>
Change-Id: Iefb43552a18dace767d684e66e3708be723c8cbb
  • Loading branch information
Thierry Strudel authored and TreeHugger Robot committed Jun 8, 2021
1 parent 40d09e7 commit a2c8311
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iommu/samsung-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,7 @@ static int __maybe_unused samsung_sysmmu_suspend(struct device *dev)
if (pm_runtime_status_suspended(dev))
return 0;

dev->power.must_resume = true;
return samsung_sysmmu_runtime_suspend(dev);
}

Expand Down

0 comments on commit a2c8311

Please sign in to comment.