linux/sound/soc/atmel
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
..
atmel_ssc_dai.c ASoC: atmel: disable error interrupt 2013-09-04 10:47:27 +01:00
atmel_ssc_dai.h ASoC: atmel-ssc-dai: register dai and pcm directly 2012-11-16 10:24:38 +09:00
atmel_wm8904.c ASoC: atmel: add wm8904 based audio machine driver 2013-07-19 19:05:14 +01:00
atmel-pcm-dma.c Merge remote-tracking branch 'asoc/topic/atmel' into asoc-next 2013-08-22 14:28:28 +01:00
atmel-pcm-pdc.c ASoC: atmel-soc: make it buildable on other architectures 2012-12-24 15:48:25 +00:00
atmel-pcm.c DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
atmel-pcm.h ASoC: atmel_pcm: make it buildable as module 2013-02-04 18:34:13 +00:00
Kconfig ASoC: atmel: machine driver for at91sam9x5-wm8731 boards 2013-08-06 18:11:09 +01:00
Makefile ASoC: atmel: machine driver for at91sam9x5-wm8731 boards 2013-08-06 18:11:09 +01:00
sam9g20_wm8731.c ASoC: sam9g20ek: Let device core handle pinctrl 2013-05-12 20:43:37 +04:00
sam9x5_wm8731.c ASoC: atmel: machine driver for at91sam9x5-wm8731 boards 2013-08-06 18:11:09 +01:00
snd-soc-afeb9260.c ASoC: Convert afeb9260 to table based DAPM init 2012-02-01 21:52:54 +00:00