[PATCH 0/2] Couple of SCMI race fixes
From: Roland Dreier via B4 Relay
Date: Fri Aug 14 2026 - 16:17:03 EST
Noticed a couple of races in SCMI code around delayed responses that
time out. These are probably nearly impossible to hit in practice but
the fixes are pretty straightforward and it seems worth having the
code be sound.
Signed-off-by: Roland Dreier <rolanddreier@xxxxxxxxxx>
---
Roland Dreier (2):
firmware: arm_scmi: Protect xfer->async_done with xfer->lock
firmware: arm_scmi: Don't reuse raw xfers with async_done still armed
drivers/firmware/arm_scmi/common.h | 23 ++++++++++++++++++++++
drivers/firmware/arm_scmi/driver.c | 36 ++++++++++++++++++++++++++++++-----
drivers/firmware/arm_scmi/protocols.h | 9 ++++++---
drivers/firmware/arm_scmi/raw_mode.c | 29 ++++++++++++++++++++++------
4 files changed, 83 insertions(+), 14 deletions(-)
---
base-commit: a5161661ae99f497affa83a5b8654e457cda6267
change-id: 20260814-scmi-async-done-race-29117fd1e9a5
Best regards,
--
Roland Dreier <rolanddreier@xxxxxxxxxx>