Commit 74f0c573 authored by Artem Shimko's avatar Artem Shimko Committed by Greg Kroah-Hartman
Browse files

firmware: arm_scmi: Fix premature SCMI_XFER_FLAG_IS_RAW clearing in raw mode



[ Upstream commit 20b93a00 ]

The SCMI_XFER_FLAG_IS_RAW flag was being cleared prematurely in
scmi_xfer_raw_put() before the transfer completion was properly
acknowledged by the raw message handlers.

Move the clearing of SCMI_XFER_FLAG_IS_RAW and SCMI_XFER_FLAG_CHAN_SET
from scmi_xfer_raw_put() to __scmi_xfer_put() to ensure the flags remain
set throughout the entire raw message processing pipeline until the
transfer is returned to the free pool.

Fixes: 3095a3e2 ("firmware: arm_scmi: Add xfer helpers to provide raw access")
Suggested-by: default avatarCristian Marussi <cristian.marussi@arm.com>
Signed-off-by: default avatarArtem Shimko <a.shimko.dev@gmail.com>
Reviewed-by: default avatarCristian Marussi <cristian.marussi@arm.com>
Message-Id: <20251008091057.1969260-1-a.shimko.dev@gmail.com>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e088efcd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment