Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229304
b: refs/heads/master
c: 2f9c9be
h: refs/heads/master
v: v3
  • Loading branch information
Nishanth Aravamudan authored and Benjamin Herrenschmidt committed Nov 29, 2010
1 parent 3bd98fa commit 9e80a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d283d782f9fbafee5c672bfdaff4c10f6fdc788
refs/heads/master: 2f9c9be2ff31670c942572cf96eb6c696362b584
19 changes: 1 addition & 18 deletions trunk/arch/powerpc/platforms/pasemi/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,20 +156,12 @@ static void iommu_table_iobmap_setup(void)

static void pci_dma_bus_setup_pasemi(struct pci_bus *bus)
{
struct device_node *dn;

pr_debug("pci_dma_bus_setup, bus %p, bus->self %p\n", bus, bus->self);

if (!iommu_table_iobmap_inited) {
iommu_table_iobmap_inited = 1;
iommu_table_iobmap_setup();
}

dn = pci_bus_to_OF_node(bus);

if (dn)
PCI_DN(dn)->iommu_table = &iommu_table_iobmap;

}


Expand All @@ -192,9 +184,6 @@ static void pci_dma_dev_setup_pasemi(struct pci_dev *dev)
set_iommu_table_base(&dev->dev, &iommu_table_iobmap);
}

static void pci_dma_bus_setup_null(struct pci_bus *b) { }
static void pci_dma_dev_setup_null(struct pci_dev *d) { }

int __init iob_init(struct device_node *dn)
{
unsigned long tmp;
Expand Down Expand Up @@ -251,14 +240,8 @@ void __init iommu_init_early_pasemi(void)
iommu_off = of_chosen &&
of_get_property(of_chosen, "linux,iommu-off", NULL);
#endif
if (iommu_off) {
/* Direct I/O, IOMMU off */
ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_null;
ppc_md.pci_dma_bus_setup = pci_dma_bus_setup_null;
set_pci_dma_ops(&dma_direct_ops);

if (iommu_off)
return;
}

iob_init(NULL);

Expand Down

0 comments on commit 9e80a0d

Please sign in to comment.