[RFC PATCH] ARM64: PCI: inherit root controller's dma-coherent
Ming Lei
ming.lei at canonical.com
Thu Nov 27 02:14:14 PST 2014
On Thu, Nov 27, 2014 at 5:03 PM, Arnd Bergmann <arnd at arndb.de> wrote:
>
> Regarding the pcibios_add_device() function, I'd rather see the existing
> code moved into the PCI core and the function removed, since it also
> is not architecture specific. We should be able to delete the entire
> arm64/pci.c file eventually.
I totally agree.
Looks pcibios_*() are misused by ARCHs, which should have been
designed for addressing ARCH pcibios things, now these functions
are just a hook for ARCH code.
Specifically pci host controller driver can't be arch independent
at all because of ARCH's pcibios_*() implementation and
the specific data type defined by ARCH code.
Thanks,
Ming Lei
More information about the linux-arm-kernel
mailing list