[PATCH RESEND] soundwire: intel_ace2x: release bpt_stream when close it

Bard Liao posted 1 patch 4 weeks ago
drivers/soundwire/intel_ace2x.c | 1 +
1 file changed, 1 insertion(+)
[PATCH RESEND] soundwire: intel_ace2x: release bpt_stream when close it
Posted by Bard Liao 4 weeks ago
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")

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Simon Trimmer <simont@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
---
 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
Re: [PATCH RESEND] soundwire: intel_ace2x: release bpt_stream when close it
Posted by Vinod Koul 3 weeks, 4 days ago
On Thu, 14 May 2026 22:16:25 +0800, 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")
> 
> 

Applied, thanks!

[1/1] soundwire: intel_ace2x: release bpt_stream when close it
      commit: 8a7fe10eec64bfb7cf4091bca540de4c55d56bfa

Best regards,
-- 
~Vinod
Re: [PATCH RESEND] soundwire: intel_ace2x: release bpt_stream when close it
Posted by Vinod Koul 3 weeks, 4 days ago
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@linux.intel.com>
> Reviewed-by: Simon Trimmer <simont@opensource.cirrus.com>
> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
> ---
>  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