diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-08-17 17:29:13 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-08-18 08:31:04 +0200 |
commit | b61b8b37888ab13d4bf1b8f406713d51f01568cf (patch) | |
tree | fb194f616da9abe2eba6c2f28ea172fd2dd1ba68 /crypto/nhpoly1305.c | |
parent | soundwire: intel: add pm_runtime support (diff) | |
download | linux-b61b8b37888ab13d4bf1b8f406713d51f01568cf.tar.xz linux-b61b8b37888ab13d4bf1b8f406713d51f01568cf.zip |
soundwire: intel: reset pm_runtime status during system resume
The system resume does the entire bus re-initialization and brings it
to full-power. If the device was pm_runtime suspended, there is no
need to run the pm_runtime resume sequence after the system runtime.
Follow the documentation from runtime_pm.rst, and conditionally
disable, set_active and re-enable the device on system resume.
Note that pm_runtime_suspended() is used instead of
pm_runtime_status_suspended() so that we can deal with the case where
pm_runtime is disabled.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200817152923.3259-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'crypto/nhpoly1305.c')
0 files changed, 0 insertions, 0 deletions