MLK-25473-4: dmaengine: imx-sdma: fix kernel hang at spi probe
authorRobin Gong <yibin.gong@nxp.com>
Fri, 30 Apr 2021 13:59:55 +0000 (21:59 +0800)
committerRobin Gong <yibin.gong@nxp.com>
Fri, 30 Apr 2021 15:09:51 +0000 (23:09 +0800)
commit03b457761fcda068390be5ce80e99fa72582962e
tree07ab3f5b4fe27fdc46a695cbd58ce16ce92134c6
parentfe4ccc22d81dcd0fe7d6333784feebff2054607c
MLK-25473-4: dmaengine: imx-sdma: fix kernel hang at spi probe

spi driver would request dma channel and free dma channel if -EPROBE_DEFER
happen after request dma channel, then kernel hang in free dma channel
since sdma hardware not initialized including clock. Directly ignore to
touch any hardware in this case.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
drivers/dma/imx-sdma.c