Re: [PATCH v9 03/11] dmaengine: qcom: bam_dma: implement support for BAM locking

From: Dmitry Baryshkov

Date: Sat Dec 06 2025 - 06:44:56 EST


On Fri, Nov 28, 2025 at 12:44:01PM +0100, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> Use metadata operations in DMA descriptors to allow BAM users to pass
> additional information to the engine. To that end: define a new
> structure - struct bam_desc_metadata - as a medium and define two new
> commands: for locking and unlocking the BAM respectively. Handle the
> locking in the .attach() callback.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
> ---
> drivers/dma/qcom/bam_dma.c | 59 +++++++++++++++++++++++++++++++++++++++-
> include/linux/dma/qcom_bam_dma.h | 12 ++++++++
> 2 files changed, 70 insertions(+), 1 deletion(-)

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


--
With best wishes
Dmitry