powerpc/powernv: Initialize DMA for PEs
authorGavin Shan <shangw@linux.vnet.ibm.com>
Mon, 20 Aug 2012 03:49:17 +0000 (03:49 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 17 Sep 2012 06:35:14 +0000 (16:35 +1000)
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 <shangw@linux.vnet.ibm.com>
Reviewed-by: Ram Pai <linuxram@us.ibm.com>
Reviewed-by: Richard Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/pci-ioda.c

index 9e34f4614b64199b75c76f2006e45658c12e1652..edf39e099945047f0110bb99beef419924f1c8a8 100644 (file)
@@ -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();
 }
 
 /*