Skip to content

Commit

Permalink
soundwire: Initialize completion for defer messages
Browse files Browse the repository at this point in the history
Deferred messages are async messages used to synchronize
transitions mostly while doing a bank switch on multi links.
On successful transitions these messages are marked complete
and thereby confirming that all the buses performed bank switch
successfully.

So, initialize the completion structure for the same.

Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com>
Signed-off-by: Shreyas NC <shreyas.nc@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Shreyas NC authored and Vinod Koul committed Aug 27, 2018
1 parent 8cf3f9c commit a306a0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/soundwire/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ static inline int do_transfer_defer(struct sdw_bus *bus,

defer->msg = msg;
defer->length = msg->len;
init_completion(&defer->complete);

for (i = 0; i <= retry; i++) {
resp = bus->ops->xfer_msg_defer(bus, msg, defer);
Expand Down

0 comments on commit a306a0e

Please sign in to comment.