linux/sound/soc/davinci
Russell King c9bd5e690a DMA-API: sound: fix dma mask handling in a lot of drivers
This code sequence is unsafe in modules:

static u64 mask = DMA_BIT_MASK(something);
...
	if (!dev->dma_mask)
		dev->dma_mask = &mask;

as if a module is reloaded, the mask will be pointing at the original
module's mask address, and this can lead to oopses.  Moreover, they
all follow this with:

	if (!dev->coherent_dma_mask)
		dev->coherent_dma_mask = mask;

where 'mask' is the same value as the statically defined mask, and this
bypasses the architecture's check on whether the DMA mask is possible.

Fix these issues by using the new dma_coerce_coherent_and_mask()
function.

Acked-by: Mark Brown <broonie@linaro.org>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2013-10-31 14:48:47 +00:00
..
davinci-evm.c ARM: davinci: move private EDMA API to arm/common 2013-06-18 10:52:03 +05:30
davinci-i2s.c ASoC: switch over to use snd_soc_register_component() on davinci i2s 2013-03-26 21:55:21 +00:00
davinci-i2s.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
davinci-mcasp.c Merge remote-tracking branch 'asoc/topic/davinci' into asoc-next 2013-06-17 17:20:18 +01:00
davinci-mcasp.h ASoC: davinci-mcasp: Add Support BCLK-to-LRCLK ratio for TDM modes 2013-04-23 14:50:30 +01:00
davinci-pcm.c DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
davinci-pcm.h ARM: davinci: move private EDMA API to arm/common 2013-06-18 10:52:03 +05:30
davinci-vcif.c ASoC: switch over to use snd_soc_register_component() on davinci vcif 2013-03-26 21:55:22 +00:00
Kconfig ASoC: davinci: remove sffsdr machine support 2013-06-17 09:59:31 +01:00
Makefile ASoC: davinci: remove sffsdr machine support 2013-06-17 09:59:31 +01:00