mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 05:35:12 +07:00
11ddce1545
Instead of letting the architecture supply all of dma_set_mask just give it an additional hook selected by Kconfig. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
13 lines
279 B
C
13 lines
279 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/dma-mapping.h>
|
|
#include <linux/export.h>
|
|
#include <asm/machdep.h>
|
|
|
|
void arch_dma_set_mask(struct device *dev, u64 dma_mask)
|
|
{
|
|
if (ppc_md.dma_set_mask)
|
|
ppc_md.dma_set_mask(dev, dma_mask);
|
|
}
|
|
EXPORT_SYMBOL(arch_dma_set_mask);
|