Re: [PATCH RESEND] soundwire: intel_ace2x: release bpt_stream when close it
From: Vinod Koul
Date: Sun May 17 2026 - 12:19:17 EST
On 14-05-26, 22:16, Bard Liao wrote:
> The BPT stream was allocated in intel_ace2x_bpt_open_stream(), we need
> to free it in intel_ace2x_bpt_close_stream().
>
> Fixes: 4c1ce9f37d8a8 ("soundwire: intel_ace2x: add BPT send_async/wait callbacks")
>
No blank line here please, I have fixed it up while applying
> Signed-off-by: Bard Liao <yung-chuan.liao@xxxxxxxxxxxxxxx>
> Reviewed-by: Simon Trimmer <simont@xxxxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@xxxxxxxxx>
> ---
> drivers/soundwire/intel_ace2x.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/soundwire/intel_ace2x.c b/drivers/soundwire/intel_ace2x.c
> index 0a97253fe0c2..b37933efac5d 100644
> --- a/drivers/soundwire/intel_ace2x.c
> +++ b/drivers/soundwire/intel_ace2x.c
> @@ -317,6 +317,7 @@ static void intel_ace2x_bpt_close_stream(struct sdw_intel *sdw, struct sdw_slave
> dev_err(cdns->dev, "%s: remove slave failed: %d\n",
> __func__, ret);
>
> + sdw_release_stream(cdns->bus.bpt_stream);
> cdns->bus.bpt_stream = NULL;
> }
>
> --
> 2.43.0
--
~Vinod