LF-3132: dmaengine: imx-sdma: raise up channel0 priority after resume
authorRobin Gong <yibin.gong@nxp.com>
Thu, 28 Jan 2021 15:34:19 +0000 (23:34 +0800)
committerRobin Gong <yibin.gong@nxp.com>
Thu, 28 Jan 2021 22:38:19 +0000 (06:38 +0800)
commit41fdb664eaf01ace42d07be41dee45923585be74
treec81e8fce6d72d50615f06731715573f905980ca4
parent4193a9c3254b758881c7575d8247cbdd83c8ff95
LF-3132: dmaengine: imx-sdma: raise up channel0 priority after resume

For some tough multi channels test, the default priority of channel0 may
not be scheduled in 500us so that channel context can't be loaded as the
below warning, hence sdma channel transfer will be failed. So raise up
channel0 to the highest one since context load is important to all
channels. Besides, enlarge 500us to 5ms for safe since many highest channel
also may run at the same time like asrc/easrc tough test(8 channel run).

"imx-sdma 30e10000.dma-controller: Timeout waiting for CH0 ready"

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Zhang <peng.zhang_8@nxp.com>
drivers/dma/imx-sdma.c