On Tue, Sep 19, 2023 at 5:12 PM Amit Prakash Shukla <amitpraka...@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?