soundwire: bus: update Slave status in sdw_clear_slave_status
Bard Liao
maintainerPATCH 1/1 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
Signed-off-by Bard Liao <[email protected]>
Reviewed-by Guennadi Liakhovetski <[email protected]>
--- drivers/soundwire/bus.c | 1 + 1 file changed, 1 insertion(+)
drivers/soundwire/bus.c +1 -0
@@ -1860,6 +1860,7 @@ void sdw_clear_slave_status(struct sdw_bus *bus, u32 request)if (slave->status !=SDW_SLAVE_UNATTACHED ) {sdw_modify_slave_status (slave,SDW_SLAVE_UNATTACHED ); slave->first_interrupt_done = false; +sdw_update_slave_status (slave,SDW_SLAVE_UNATTACHED ); }/* keep track of request, used in pm_runtime resume */
Signature · 1 line
2.17.1
Quoted 7 lines · Bard Liao
Call to
sdw_update_slave_status()needs to be added tosdw_clear_slave_status()to ensure Slaves are informed of the new status viaupdate_status()callback.This will enable codec drivers to reset their internal states and make sure the register settings are properly restored on
pm_runtimeor system resume
Applied, thanks
Signature · 1 line
~Vinod