aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <[email protected]>2021-07-17 19:00:21 +0000
committerVinod Koul <[email protected]>2021-07-28 07:24:50 +0000
commiteda97cb095f2958bbad55684a6ca3e7d7af0176a (patch)
tree07fc1139c303fe587cd544473474238ee591a503 /lib/debugobjects.c
parentdmaengine: stm32-dmamux: Fix PM usage counter unbalance in stm32 dmamux ops (diff)
downloadkernel-eda97cb095f2958bbad55684a6ca3e7d7af0176a.tar.gz
kernel-eda97cb095f2958bbad55684a6ca3e7d7af0176a.zip
dmaengine: of-dma: router_xlate to return -EPROBE_DEFER if controller is not yet available
If the router_xlate can not find the controller in the available DMA devices then it should return with -EPORBE_DEFER in a same way as the of_dma_request_slave_channel() does. The issue can be reproduced if the event router is registered before the DMA controller itself and a driver would request for a channel before the controller is registered. In of_dma_request_slave_channel(): 1. of_dma_find_controller() would find the dma_router 2. ofdma->of_dma_xlate() would fail and returned NULL 3. -ENODEV is returned as error code with this patch we would return in this case the correct -EPROBE_DEFER and the client can try to request the channel later. Signed-off-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions