* [PATCH] minor pSeries IOMMU debug cleanup
@ 2007-05-10 5:16 Michael Neuling
0 siblings, 0 replies; only message in thread
From: Michael Neuling @ 2007-05-10 5:16 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
pci is not initialized before being used here, so this debug print is
bogus at the current location.
Signed-off-by: Michael Neuling <mikey@neuling.org>
---
arch/powerpc/platforms/pseries/iommu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: linux-2.6-ozlabs/arch/powerpc/platforms/pseries/iommu.c
===================================================================
--- linux-2.6-ozlabs.orig/arch/powerpc/platforms/pseries/iommu.c
+++ linux-2.6-ozlabs/arch/powerpc/platforms/pseries/iommu.c
@@ -520,7 +520,6 @@ static void pci_dma_dev_setup_pSeriesLP(
dev->dev.archdata.dma_data = PCI_DN(pdn)->iommu_table;
return;
}
- DBG(" found DMA window, table: %p\n", pci->iommu_table);
pci = PCI_DN(pdn);
if (!pci->iommu_table) {
@@ -534,6 +533,8 @@ static void pci_dma_dev_setup_pSeriesLP(
pci->iommu_table = iommu_init_table(tbl, pci->phb->node);
DBG(" created table: %p\n", pci->iommu_table);
+ } else {
+ DBG(" found DMA window, table: %p\n", pci->iommu_table);
}
dev->dev.archdata.dma_data = pci->iommu_table;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-10 5:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10 5:16 [PATCH] minor pSeries IOMMU debug cleanup Michael Neuling
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.