[PATCH v2] dmadev: get DMA device using device ID

Jerin Jacob jerinjacobk at gmail.com
Thu Sep 21 17:43:29 CEST 2023


On Tue, Sep 19, 2023 at 5:12 PM Amit Prakash Shukla
<amitprakashs at marvell.com> wrote:
>
> DMA library has a function to get DMA device based on device name but
> there is no function to get DMA device using device id.
>
> Added a function that lookup for the dma device using device id and
> returns the pointer to the same.

Looks like it is useful for getting nb_vchan. Could you use info_get()
API instead as it can be cached in slow path for DMA adapter?


More information about the dev mailing list