Re: [PATCH] dmaengine: of-dma: Fix of_dma_router_xlate's of_dma_xlate handling

2020-08-16 Thread Vinod Koul
On 06-08-20, 13:49, Peter Ujfalusi wrote: > of_dma_xlate callback can return ERR_PTR as well NULL in case of failure. > > If error code is returned (not NULL) then the route should be released and > the router should not be registered for the channel. Applied, thanks -- ~Vinod

[PATCH] dmaengine: of-dma: Fix of_dma_router_xlate's of_dma_xlate handling

2020-08-06 Thread Peter Ujfalusi
of_dma_xlate callback can return ERR_PTR as well NULL in case of failure. If error code is returned (not NULL) then the route should be released and the router should not be registered for the channel. Fixes: 56f13c0d9524c ("dmaengine: of_dma: Support for DMA routers") Signed-off-by: Peter Ujfalu