From: Gavin Shan Date: Mon, 20 Aug 2012 03:49:17 +0000 (+0000) Subject: powerpc/powernv: Initialize DMA for PEs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=13395c48c3def3e5afee7bd7a851f901374db5ec;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git powerpc/powernv: Initialize DMA for PEs The patch introduces additional wrapper function to call the original implementation so that the DMA can be configured for all existing PEs. Signed-off-by: Gavin Shan Reviewed-by: Ram Pai Reviewed-by: Richard Yang Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index 9e34f4614b64..edf39e099945 100644 --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c @@ -1241,10 +1241,20 @@ static void __devinit pnv_pci_ioda_setup_seg(void) } } +static void __devinit pnv_pci_ioda_setup_DMA(void) +{ + struct pci_controller *hose, *tmp; + + list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { + pnv_ioda_setup_dma(hose->private_data); + } +} + static void __devinit pnv_pci_ioda_fixup(void) { pnv_pci_ioda_setup_PEs(); pnv_pci_ioda_setup_seg(); + pnv_pci_ioda_setup_DMA(); } /*