summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-04 16:09:07 +0100
committerRich Felker <dalias@libc.org>2018-04-12 19:47:58 -0400
commitbf9c7e3d7924f72225f8f9c28438b4a711192ad3 (patch)
treeb1c46f47cfa2ea7cc8c10ed80ed1e39fca16abca /arch/sh/kernel
parent79e1c5e70b2a0fadb7b61c69de8442703e7d0dc4 (diff)
downloadlinux-bf9c7e3d7924f72225f8f9c28438b4a711192ad3.tar.bz2
arch/sh: pcie-sh7786: handle non-zero DMA offset
On SuperH, the base of the physical memory might be different from zero. In this case, PCI address zero will map to a non-zero physical address. In order to make sure that the DMA mapping API takes care of this DMA offset, we must fill in the dev->dma_pfn_offset field for PCI devices. This gets done in the pcibios_bus_add_device() hook, called for each new PCI device detected. The dma_pfn_offset global variable is re-calculated for every PCI controller available on the platform, but that's not an issue because its value will each time be exactly the same, as it only depends on the memory start address and memory size. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch/sh/kernel')
0 files changed, 0 insertions, 0 deletions