dmaengine: omap-dma: Add memory barrier to dma_resume path

Add mb() call to resume path to ensure the necessary barrier.
Resume can happen after waking up from suspend for example.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
dmaengine: omap-dma: Restore the CLINK_CTRL in resume path

When the audio stream is paused or suspended we stop the sDMA and when it
is unpaused/resumed we start the channel without reconfiguring it.
The omap_dma_stop() clears the link configuration when we pause the dma, but
it is not setting it back on start. This will result only one audio buffer
to be played back and the DMA will stop, since the linking is disabled.
We need to restore the CLINK_CTRL register in case of resume.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma

Pull slave-dmaengine fixes from Vinod Koul:
 "Two small fixes for omap dmaengine driver which fixes cyclic suspend
  and resume"

* 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
  dmaengine: omap-dma: Restore the CLINK_CTRL in resume path
  dmaengine: omap-dma: Add memory barrier to dma_resume path
Linux 3.17-rc7
smi2021: Implement bootloader

This patch will implement a bootloader for the smi2021 devices,
and add the driver to the kernel build-system.
smi2021: Implement v4l2 device
smi2021: Enable v4l2 device
smi2021: Implement audio device
smi2021: Remove some magic numbers
smi2021: Add v4l2-cntrl handlers to v4l2_fops
smi2021: Fix up the ugly hacks in smi2021_start

Add some more comments to the magic numbers
smi2021: Fix coding style
smi2021: Coding style fixes
[smi2021] Add a missing include
Fix bitrot/api issues
Kernel firmware API update
Whitespace
[smi2021] Changes after feedback from v3
[smi2021] Fix a null pointer reference
smi2021: Remove deprecated fh_prio flag

That flag was probably never needed :)