[PATCH 2/8] powerpc/dma: properly wire up the unmap_page and unmap_sg methods

Michael Ellerman mpe at ellerman.id.au
Mon Dec 17 22:37:49 AEDT 2018


Christoph Hellwig <hch at lst.de> writes:

> diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c
> index dbfc7056d7df..d442d23e182b 100644
> --- a/arch/powerpc/kernel/dma.c
> +++ b/arch/powerpc/kernel/dma.c
> @@ -247,6 +252,8 @@ static inline void dma_nommu_unmap_page(struct device *dev,
>  					 enum dma_data_direction direction,
>  					 unsigned long attrs)
>  {
> +	if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC))
> +		__dma_sync(bus_to_virt(dma_address), size, dir);

I did s/dir/direction here.

cheers


More information about the Linuxppc-dev mailing list