Skip to content

Commit d04fb2b

Browse files
cris-masudeep-holla
authored andcommitted
firmware: arm_scmi: Clear channel for delayed responses
Clear channel properly when done processing a delayed response. This will let the platform firmware know that the channel is now free to use it for any new delayed response or notification. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Cristian Marussi <[email protected]> (sudeep.holla: Updated commit log to reflect that channel is now free for platform to use) Signed-off-by: Sudeep Holla <[email protected]>
1 parent b37f5cc commit d04fb2b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/firmware/arm_scmi/driver.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,12 @@ static void scmi_handle_response(struct scmi_chan_info *cinfo,
256256
xfer->hdr.protocol_id, xfer->hdr.seq,
257257
msg_type);
258258

259-
if (msg_type == MSG_TYPE_DELAYED_RESP)
259+
if (msg_type == MSG_TYPE_DELAYED_RESP) {
260+
info->desc->ops->clear_channel(cinfo);
260261
complete(xfer->async_done);
261-
else
262+
} else {
262263
complete(&xfer->done);
264+
}
263265
}
264266

265267
/**

0 commit comments

Comments
 (0)