summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/dma-common.c
blob: dc7ef6b17b6955fdcfc1fa5ef986b12137b28080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Contains common dma routines for all powerpc platforms.
 *
 * Copyright (C) 2019 Shawn Anastasio.
 */

#include <linux/mm.h>
#include <linux/dma-noncoherent.h>

pgprot_t arch_dma_mmap_pgprot(struct device *dev, pgprot_t prot,
		unsigned long attrs)
{
	if (!dev_is_dma_coherent(dev))
		return pgprot_noncached(prot);
	return prot;
}