Commit 60835022 authored by Rander Wang's avatar Rander Wang Committed by Vinod Koul
Browse files

soundwire: stream: fix support for multiple Slaves on the same link



The existing code will unconditionally return after dealing with the
first Slave on a link. This return should only happen when there is
an error case.

Tested on Comet Lake platform.

Signed-off-by: default avatarRander Wang <rander.wang@intel.com>
Link: https://lore.kernel.org/r/20200114235227.14502-5-pierre-louis.bossart@linux.intel.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent c7a8f049
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -587,12 +587,13 @@ static int sdw_notify_config(struct sdw_master_runtime *m_rt)

		if (slave->ops->bus_config) {
			ret = slave->ops->bus_config(slave, &bus->params);
			if (ret < 0)
			if (ret < 0) {
				dev_err(bus->dev, "Notify Slave: %d failed\n",
					slave->dev_num);
				return ret;
			}
		}
	}

	return ret;
}