Re: [PATCH v4 3/3] firmware: stratix10-rsu: remove async client before freeing channel in remove()
From: Dinh Nguyen
Date: Mon Jul 13 2026 - 22:58:49 EST
On 7/10/26 01:52, tze.yee.ng@xxxxxxxxxx wrote:
From: Tze Yee Ng <tze.yee.ng@xxxxxxxxxx>
After stratix10_svc_add_async_client() succeeds in probe, remove() must
call stratix10_svc_remove_async_client() before
stratix10_svc_free_channel(). Otherwise async state is left allocated while
the channel is released.
Signed-off-by: Tze Yee Ng <tze.yee.ng@xxxxxxxxxx>
---
Changes in v4:
- Rebased onto dinguyen/socfpga_svc_fixes_for_v7.2.
- Narrowed scope to stratix10_rsu_remove() only (+1 line). Probe error
paths, return 0 on success, Fixes:, and Cc: stable@ dropped; probe
teardown is covered by bfd2eb9bba54 on the new base.
- Title updated: "... in remove()" (was "... on probe errors" in v3).
Changes in v3:
- No code changes in all patches, only put Cc: stable@xxxxxxxxxxxxxxx # 6.19+
in the sign-off block for the Fixes: tag in Patch 3.
Changes in v2:
- Fix patch title.
- Move the fix description to the end of the patch.
---
drivers/firmware/stratix10-rsu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/firmware/stratix10-rsu.c b/drivers/firmware/stratix10-rsu.c
index a36c4e3d6975..cdda0c4410f8 100644
--- a/drivers/firmware/stratix10-rsu.c
+++ b/drivers/firmware/stratix10-rsu.c
@@ -1054,6 +1054,7 @@ static void stratix10_rsu_remove(struct platform_device *pdev)
{
struct stratix10_rsu_priv *priv = platform_get_drvdata(pdev);
+ stratix10_svc_remove_async_client(priv->chan);
stratix10_svc_free_channel(priv->chan);
This change is already in this patch[0].
Dinh
[0] https://sashiko.dev/#/message/e991a29b0c7bd567da6b9e9a3a59486774a34ab2.1783666551.git.tze.yee.ng%40altera.com