Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soundwire: bus_type: add DPM_FLAG_SMART_SUSPEND support
Where the SoundWire manager is pm_runtime suspended with the clock-stop mode enabled, we currently do nothing on Intel platforms before entering system suspend. This is problematic since the hardware does not seem to fully reset during system resume, we have e.g. been tracking issues related to this clock stop mode for the last 6 months. The power management framework already defines a DPM_FLAG_SMART_SUSPEND flag. This patch exposes a bus .suspend callback that will handle a pm_runtime_resume when this flag is not set. FIXME: need to find a way to set this flag or not depending on parent capabilities. BugLink: thesofproject#2606 Suggested-by: Rafael J. Wysocki <rafael@kernel.org> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
- Loading branch information