[PATCH] dma-coherent: fix rmem_dma_device_init regression

2017-09-15 Thread Arnd Bergmann
My recent bug fix introduced another bug, which caused rmem_dma_device_init to always fail, as rmem->priv is never set to anything. This restores the previous behavior, calling dma_init_coherent_memory() whenever ->priv is NULL. Fixes: d35b0996fef3 ("dma-coherent: fix dma_declare_coherent_memory(

Re: dma-coherent: fix dma_declare_coherent_memory() logic error

2017-09-15 Thread Arnd Bergmann
>> @@ -338,14 +346,18 @@ static struct reserved_mem >> *dma_reserved_default_memory __initdata; >> static int rmem_dma_device_init(struct reserved_mem *rmem, struct device >> *dev) >> { >> struct dma_coherent_mem *mem = rmem->priv; >> + int ret; >> + >> + if (!mem) >> +

[PATCH] iommu/exynos: Rework runtime PM links management

2017-09-15 Thread Marek Szyprowski
add_device is a bit more suitable for establishing runtime PM links than the xlate callback. This change also makes it possible to implement proper cleanup - in remove_device callback. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 23 --- 1 file changed,