linux/drivers/firmware/arm_scmi
Artem Shimko 20b93a0088 firmware: arm_scmi: Fix premature SCMI_XFER_FLAG_IS_RAW clearing in raw mode
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: 3095a3e25d ("firmware: arm_scmi: Add xfer helpers to provide raw access")
Suggested-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Artem Shimko <a.shimko.dev@gmail.com>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Message-Id: <20251008091057.1969260-1-a.shimko.dev@gmail.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2025-10-15 15:28:49 +01:00
..
transports firmware: arm_scmi: Simplify printks with pOF format 2025-09-12 11:32:21 +01:00
vendors/imx firmware: arm_scmi: imx: Discover MISC board info from the system manager 2025-09-09 11:26:20 +01:00
base.c firmware: arm_scmi: Replace comma with the semicolon 2024-08-28 17:16:25 +01:00
bus.c firmware: arm_scmi: Simplify printks with pOF format 2025-09-12 11:32:21 +01:00
clock.c firmware: arm_scmi: quirk: Fix CLOCK_DESCRIBE_RATES triplet 2025-05-06 11:12:30 +01:00
common.h include: trace: Fix inflight count helper on failed initialization 2025-10-15 15:26:41 +01:00
driver.c firmware: arm_scmi: Fix premature SCMI_XFER_FLAG_IS_RAW clearing in raw mode 2025-10-15 15:28:49 +01:00
Kconfig firmware: arm_scmi: Add common framework to handle firmware quirks 2025-05-06 11:12:30 +01:00
Makefile firmware: arm_scmi: Add common framework to handle firmware quirks 2025-05-06 11:12:30 +01:00
msg.c firmware: arm_scmi: Remove legacy transport-layer code 2024-08-16 10:26:58 +01:00
notify.c firmware: arm_scmi: Avoid notifier registration for unsupported events 2025-07-08 16:13:55 +01:00
notify.h firmware: arm_scmi: Check for notification support 2024-02-20 06:35:55 +00:00
perf.c firmware: arm_scmi: Fix up turbo frequencies selection 2025-06-23 14:36:17 +01:00
pinctrl.c firmware: arm_scmi: Fix trivial whitespace/coding style issues 2024-08-28 17:16:25 +01:00
power.c firmware: arm_scmi: Update various protocols versions 2024-08-16 10:26:58 +01:00
powercap.c firmware: arm_scmi: Fix wrong fastchannel initialization 2024-03-25 10:14:28 +00:00
protocols.h firmware: arm_scmi: Ensure that the message-id supports fastchannel 2025-05-06 11:12:30 +01:00
quirks.c firmware: arm_scmi: quirk: Prevent writes to string constants 2025-09-02 11:23:42 +01:00
quirks.h firmware: arm_scmi: quirk: Force perf level get fastchannel 2025-05-06 11:12:30 +01:00
raw_mode.c include: trace: Add tracepoint support for inflight xfer count 2025-07-03 16:18:09 +01:00
raw_mode.h firmware: arm_scmi: Add per-channel raw injection support 2023-01-20 11:41:37 +00:00
reset.c firmware: arm_scmi: Update various protocols versions 2024-08-16 10:26:58 +01:00
scmi_power_control.c firmware: arm_scmi: Convert to SYSTEM_SLEEP_PM_OPS 2025-07-09 10:49:58 +01:00
sensors.c firmware: arm_scmi: Update various protocols versions 2024-08-16 10:26:58 +01:00
shmem.c firmware: arm_scmi: Account for SHMEM memory overhead 2024-10-28 14:51:10 +00:00
system.c firmware: arm_scmi: Update various protocols versions 2024-08-16 10:26:58 +01:00
voltage.c firmware: arm_scmi: Constify struct scmi_voltage_proto_ops 2025-08-21 14:14:59 +01:00