Skip to content

Commit dba7d9d

Browse files
bardliaovinodkoul
authored andcommitted
soundwire: stream: restore params when prepare ports fail
The bus->params should be restored if the stream is failed to prepare. The issue exists since beginning. The Fixes tag just indicates the first commit that the commit can be applied to. Fixes: 17ed5be ("soundwire: add missing newlines in dynamic debug logs") Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/20250626060952.405996-1-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 06f77ff commit dba7d9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soundwire/stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ static int _sdw_prepare_stream(struct sdw_stream_runtime *stream,
15101510
if (ret < 0) {
15111511
dev_err(bus->dev, "Prepare port(s) failed ret = %d\n",
15121512
ret);
1513-
return ret;
1513+
goto restore_params;
15141514
}
15151515
}
15161516

0 commit comments

Comments
 (0)