mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
soundwire: stream: don't abort bank switch on Command_Ignored/-ENODATA
This change is needed for support of mockup devices, which by construction will not provide any answer to a bank switch, but it's also legit for regular cases. If for some reason a device loses sync and cannot handle a bank switch, we should go ahead anyways. The devices can always resync later. The only case where the error flow should be used is when there is a Command_Aborted composite answer from SoundWire devices. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Link: https://lore.kernel.org/r/20210714032209.11284-6-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
13a5635632
commit
e6645314eb
1 changed files with 1 additions and 1 deletions
|
@ -697,7 +697,7 @@ static int sdw_bank_switch(struct sdw_bus *bus, int m_rt_count)
|
||||||
else
|
else
|
||||||
ret = sdw_transfer(bus, wr_msg);
|
ret = sdw_transfer(bus, wr_msg);
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0 && ret != -ENODATA) {
|
||||||
dev_err(bus->dev, "Slave frame_ctrl reg write failed\n");
|
dev_err(bus->dev, "Slave frame_ctrl reg write failed\n");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue