mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
soundwire: bus: split handling of Device0 events
Assigning a device number to a Slave will result in additional events when it reports its status in a PING frame. There is no point in dealing with all the other devices in a loop, this can be done when a non-device0 event happens. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20190725234032.21152-19-pierre-louis.bossart@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
68acd85996
commit
15ed3ea228
1 changed files with 5 additions and 0 deletions
|
@ -972,6 +972,11 @@ int sdw_handle_slave_status(struct sdw_bus *bus,
|
|||
ret = sdw_program_device_num(bus);
|
||||
if (ret)
|
||||
dev_err(bus->dev, "Slave attach failed: %d\n", ret);
|
||||
/*
|
||||
* programming a device number will have side effects,
|
||||
* so we deal with other devices at a later time
|
||||
*/
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Continue to check other slave statuses */
|
||||
|
|
Loading…
Reference in a new issue