]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: bus: update Slave status in sdw_clear_slave_status
authorBard Liao <yung-chuan.liao@linux.intel.com>
Wed, 14 Jul 2021 03:36:09 +0000 (11:36 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 22 Jul 2021 14:25:37 +0000 (19:55 +0530)
commit00c1551c0bf8bdb87fbfc94adb99387f3567c61b
tree7eacf4090a9abff9f5f132f7184a10a4eee0442a
parent055b4b93d5f259de3233138419ef77d9a704fbde
soundwire: bus: update Slave status in sdw_clear_slave_status

Call to sdw_update_slave_status() needs to be added to sdw_clear_slave_
status() to ensure Slaves are informed of the new status via update_
status() callback.

This will enable codec drivers to reset their internal states and make
sure the register settings are properly restored on pm_runtime or
system resume

BugLink: https://github.com/thesofproject/linux/issues/2908
BugLink: https://github.com/thesofproject/linux/issues/2637
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20210714033609.11963-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c