dma: mv_xor: Flush descriptors before activating a channel
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Wed, 21 May 2014 21:02:35 +0000 (14:02 -0700)
committerJiri Slaby <jslaby@suse.cz>
Mon, 9 Jun 2014 13:53:49 +0000 (15:53 +0200)
commitac0dc6aaaf89fb8a924bf5a2e83f55a82e76a527
tree228722dd5971b8a563588cbc49ef523d04780dc2
parent3d04a977d502572be729e1158d87fb9fb8d9ab59
dma: mv_xor: Flush descriptors before activating a channel

commit 5a9a55bf9157d3490b0c8c4c81d4708602c26e07 upstream.

We need to use writel() instead of writel_relaxed() when starting
a channel, to ensure all the descriptors have been flushed before
the activation.

While at it, remove the unneeded read-modify-write and make the
code simpler.

Signed-off-by: Lior Amsalem <alior@marvell.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/dma/mv_xor.c