linux/sound/soc/omap
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
..
am3517evm.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
ams-delta.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
Kconfig Merge branch 'topic/dma' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-omap 2013-08-15 11:37:38 +01:00
Makefile ASoC: OMAP: Remove obsolete Makefile line 2013-05-30 11:49:24 +01:00
mcbsp.c ASoC: Updates for v3.12 2013-08-23 14:12:22 +02:00
mcbsp.h ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
n810.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
omap3pandora.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
omap-abe-twl6040.c ASoC: omap-abe-twl6040: Remove support for pdata (legacy boot) 2013-07-31 20:03:00 +01:00
omap-dmic.c ASoC: omap: simplify platform_get_resource_byname/devm_ioremap_resource 2013-08-20 11:50:58 +01:00
omap-dmic.h ASoC: OMAP4: omap-dmic: Initial support for OMAP DMIC 2011-11-28 17:21:44 +00:00
omap-hdmi-card.c ASoC: omap-hdmi-codec: make the driver common for other SoCs 2013-06-05 16:54:55 +01:00
omap-hdmi.c Merge remote-tracking branch 'asoc/topic/dma' into asoc-next 2013-04-12 13:57:04 +01:00
omap-hdmi.h ASoC: OMAP: HDMI: Expand capabilities of the HDMI DAI 2012-05-22 17:33:23 +01:00
omap-mcbsp.c ASoC: omap-mcbsp: Support SND_SOC_DAIFMT_CBM_CFS for omap3/4 2013-07-22 00:57:36 +01:00
omap-mcbsp.h ASoC: omap-mcbsp: Remove unused defines 2012-08-22 20:17:11 +01:00
omap-mcpdm.c ASoC: omap: simplify platform_get_resource_byname/devm_ioremap_resource 2013-08-20 11:50:58 +01:00
omap-mcpdm.h ASoC: omap-mcpdm: API to configure offset cancellation 2011-09-26 22:23:32 +01:00
omap-pcm.c DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
omap-twl4030.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
osk5912.c ASoC: omap: Use common DAI DMA data 2013-04-03 18:12:58 +01:00
rx51.c ARM: OMAP2+: N900: enable N900-specific drivers even if device tree is enabled 2013-07-04 05:11:16 -07:00