Skip to content

Commit 899a750

Browse files
bardliaovinodkoul
authored andcommitted
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: thesofproject#2908 BugLink: thesofproject#2637 Signed-off-by: Bard Liao <[email protected]> Reviewed-by: Guennadi Liakhovetski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 00d3c2b commit 899a750

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/soundwire/bus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,6 +1854,7 @@ void sdw_clear_slave_status(struct sdw_bus *bus, u32 request)
18541854
if (slave->status != SDW_SLAVE_UNATTACHED) {
18551855
sdw_modify_slave_status(slave, SDW_SLAVE_UNATTACHED);
18561856
slave->first_interrupt_done = false;
1857+
sdw_update_slave_status(slave, SDW_SLAVE_UNATTACHED);
18571858
}
18581859

18591860
/* keep track of request, used in pm_runtime resume */

0 commit comments

Comments
 (0)