soundwire: intel: add CLK_STOP_BUS_RESET support
authorRander Wang <rander.wang@intel.com>
Mon, 17 Aug 2020 15:29:19 +0000 (23:29 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 18 Aug 2020 06:31:05 +0000 (12:01 +0530)
commit6626a616aab5e5c0d4fceffd861a10582272fce9
treee644ed33727e79b3345392412cf96af2256532f5
parenta320f41eac7b250c27db1c8071a984e584109ce1
soundwire: intel: add CLK_STOP_BUS_RESET support

Move existing pm_runtime suspend under the CLK_STOP_TEARDOWN case.

In this mode the Master IP will lose all context but in-band wakes are
supported.

On pm_runtime resume a complete re-enumeration will be performed after
a bus reset.

Signed-off-by: Rander Wang <rander.wang@intel.com>
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-9-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c