diff options
| author | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
| commit | c74a7469f97c0f40b46e82ee979f9fb1bb6e847c (patch) | |
| tree | f2690a1a916b73ef94657fbf0e0141ae57701825 /sound/soc/sh/rcar/dma.c | |
| parent | 6f15a7de86c8cf2dc09fc9e6d07047efa40ef809 (diff) | |
| parent | 500775074f88d9cf5416bed2ca19592812d62c41 (diff) | |
Merge drm/drm-next into drm-intel-next-queued
We need a backmerge to get DP_DPCD_REV_14 before we push other
i915 changes to dinq that could break compilation.
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'sound/soc/sh/rcar/dma.c')
| -rw-r--r-- | sound/soc/sh/rcar/dma.c | 11 | 
1 files changed, 9 insertions, 2 deletions
| diff --git a/sound/soc/sh/rcar/dma.c b/sound/soc/sh/rcar/dma.c index 41de23417c4a..ef82b94d038b 100644 --- a/sound/soc/sh/rcar/dma.c +++ b/sound/soc/sh/rcar/dma.c @@ -253,6 +253,13 @@ static int rsnd_dmaen_attach(struct rsnd_dai_stream *io,  		return -EAGAIN;  	} +	/* +	 * use it for IPMMU if needed +	 * see +	 *	rsnd_preallocate_pages() +	 */ +	io->dmac_dev = chan->device->dev; +  	dma_release_channel(chan);  	dmac->dmaen_num++; @@ -695,7 +702,7 @@ static int rsnd_dma_alloc(struct rsnd_dai_stream *io, struct rsnd_mod *mod,  	rsnd_dma_of_path(mod, io, is_play, &mod_from, &mod_to); -	/* for Gen2 */ +	/* for Gen2 or later */  	if (mod_from && mod_to) {  		ops	= &rsnd_dmapp_ops;  		attach	= rsnd_dmapp_attach; @@ -773,7 +780,7 @@ int rsnd_dma_probe(struct rsnd_priv *priv)  		return 0;  	/* -	 * for Gen2 +	 * for Gen2 or later  	 */  	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "audmapp");  	dmac = devm_kzalloc(dev, sizeof(*dmac), GFP_KERNEL); |