firmware: arm_scmi: Clear stale xfer->hdr.status
[platform/kernel/linux-rpi.git] / drivers / firmware / arm_scmi / driver.c
index a8ff4c9..1184249 100644 (file)
@@ -783,6 +783,8 @@ static int do_xfer(const struct scmi_protocol_handle *ph,
                              xfer->hdr.protocol_id, xfer->hdr.seq,
                              xfer->hdr.poll_completion);
 
+       /* Clear any stale status */
+       xfer->hdr.status = SCMI_SUCCESS;
        xfer->state = SCMI_XFER_SENT_OK;
        /*
         * Even though spinlocking is not needed here since no race is possible