arm64/dma-mapping: Extend DMA ops workaround to PCI devices
authorRobin Murphy <robin.murphy@arm.com>
Tue, 19 Apr 2016 16:01:31 +0000 (17:01 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 21 Apr 2016 16:34:34 +0000 (17:34 +0100)
commit226d89cbb242f3fbd3e93367dfd5138f524aae5c
treea4ee658b385fe93057867a11ab0c30b67a646c87
parent643d703d2d2dbf8e2f16efa0a6a32b1eca101d02
arm64/dma-mapping: Extend DMA ops workaround to PCI devices

PCI devices now suffer the same hiccup as platform devices, in that they
get their DMA ops configured before they have been added to their bus,
and thus before we know whether they have successfully registered with
an IOMMU or not. Until the necessary driver core changes to reorder
calls during device creation have been worked out, extend our delayed
notifier trick onto the PCI bus so as to avoid broken DMA ops once
IOMMUs get plugged into the PCI code.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/dma-mapping.c