Skip to content

Commit b37f5cc

Browse files
cris-masudeep-holla
authored andcommitted
firmware: arm_scmi: Clear channel on reception of unexpected responses
When an unexpected response message is received we currently warn the user and bail-out, ensure to also free the channel by invoking the transport independent operation .clear_channel() Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Cristian Marussi <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent 87dff4e commit b37f5cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/firmware/arm_scmi/driver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ static void scmi_handle_response(struct scmi_chan_info *cinfo,
242242
/* Are we even expecting this? */
243243
if (!test_bit(xfer_id, minfo->xfer_alloc_table)) {
244244
dev_err(dev, "message for %d is not expected!\n", xfer_id);
245+
info->desc->ops->clear_channel(cinfo);
245246
return;
246247
}
247248

0 commit comments

Comments
 (0)