dma: sh: Fix callback processing order
Transfer request should be called after queue list is cleared.
Normal case:
__ld_cleanup();
__ld_cleanup();
shdma_tx_submit();
Illegal case:
__ld_cleanup();
shdma_tx_submit();
__ld_cleanup();
Since timeout error may occur if this illegal sequence occurs in MMC/SD
drivers, the __ld_cleanup() is called before callback function.
Signed-off-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
(cherry picked from commit 305e22cf8bc9d30ad9685350cb91581689acab1c)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 file changed