ARM: riscpc: fix DMA
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 2 May 2019 16:19:18 +0000 (17:19 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 9 May 2019 16:16:41 +0000 (17:16 +0100)
commitffd9a1ba9fdb7f2bd1d1ad9b9243d34e96756ba2
treedb8149561633850c44ce0fc8d8793fd99a3f7fc0
parente89e261365588035edd7c8b42a961c1e6c36a567
ARM: riscpc: fix DMA

DMA got broken a while back in two different ways:
1) a change in the behaviour of disable_irq() to wait for the interrupt
   to finish executing causes us to deadlock at the end of DMA.
2) a change to avoid modifying the scatterlist left the first transfer
   uninitialised.

DMA is only used with expansion cards, so has gone unnoticed.

Fixes: fa4e99899932 ("[ARM] dma: RiscPC: don't modify DMA SG entries")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mach-rpc/dma.c