All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dinh Nguyen <dinguyen@kernel.org>
To: tze.yee.ng@altera.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 3/3] firmware: stratix10-rsu: remove async client before freeing channel in remove()
Date: Fri, 10 Jul 2026 08:42:31 -0500	[thread overview]
Message-ID: <ecf5fe47-860b-4e1e-8d96-68ccee827b45@kernel.org> (raw)
In-Reply-To: <f6afbb74b7b8e6db8a493d0576091c7b0abb6501.1783665493.git.tze.yee.ng@altera.com>



On 7/10/26 01:52, tze.yee.ng@altera.com wrote:
> From: Tze Yee Ng <tze.yee.ng@altera.com>
> 
> 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@altera.com>
> ---
> 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@vger.kernel.org # 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);
>   }
>   

Your original patch has a Fixes tag.

Dinh


  reply	other threads:[~2026-07-10 13:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-10  6:52 [PATCH v4 0/3] firmware: stratix10-rsu: expose QSPI flash size and erase size from firmware tze.yee.ng
2026-07-10  6:52 ` [PATCH v4 1/3] Documentation: ABI: add stratix10-rsu QSPI size and erase_size sysfs tze.yee.ng
2026-07-10  6:52 ` [PATCH v4 2/3] firmware: stratix10-rsu: Add flash device info retrieval via SMC tze.yee.ng
2026-07-10  6:52 ` [PATCH v4 3/3] firmware: stratix10-rsu: remove async client before freeing channel in remove() tze.yee.ng
2026-07-10 13:42   ` Dinh Nguyen [this message]
2026-07-14  1:41     ` NG, TZE YEE
2026-07-14  2:58   ` Dinh Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ecf5fe47-860b-4e1e-8d96-68ccee827b45@kernel.org \
    --to=dinguyen@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tze.yee.ng@altera.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.