Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113093
b: refs/heads/master
c: 463801b
h: refs/heads/master
i:
  113091: ccb2e10
v: v3
  • Loading branch information
David S. Miller committed Sep 2, 2008
1 parent 44ea42a commit 098317e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 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: 0f73d1bbe6240bcdf14c221bbe2ece63540c5c44
refs/heads/master: 463801b3ae97fe1c652ce8da5a61367405d6ec3e
25 changes: 8 additions & 17 deletions trunk/arch/sparc64/kernel/pci_schizo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1152,24 +1152,17 @@ static void schizo_pbm_strbuf_init(struct pci_pbm_info *pbm)

static int schizo_pbm_iommu_init(struct pci_pbm_info *pbm)
{
struct iommu *iommu = pbm->iommu;
static const u32 vdma_default[] = { 0xc0000000, 0x40000000 };
unsigned long i, tagbase, database;
struct property *prop;
u32 vdma[2], dma_mask;
struct iommu *iommu = pbm->iommu;
int tsbsize, err;
const u32 *vdma;
u32 dma_mask;
u64 control;

prop = of_find_property(pbm->prom_node, "virtual-dma", NULL);
if (prop) {
u32 *val = prop->value;

vdma[0] = val[0];
vdma[1] = val[1];
} else {
/* No property, use default values. */
vdma[0] = 0xc0000000;
vdma[1] = 0x40000000;
}
vdma = of_get_property(pbm->prom_node, "virtual-dma", NULL);
if (!vdma)
vdma = vdma_default;

dma_mask = vdma[0];
switch (vdma[1]) {
Expand Down Expand Up @@ -1284,7 +1277,6 @@ static int schizo_pbm_iommu_init(struct pci_pbm_info *pbm)

static void schizo_pbm_hw_init(struct pci_pbm_info *pbm)
{
struct property *prop;
u64 tmp;

schizo_write(pbm->pbm_regs + SCHIZO_PCI_IRQ_RETRY, 5);
Expand All @@ -1298,8 +1290,7 @@ static void schizo_pbm_hw_init(struct pci_pbm_info *pbm)
pbm->chip_version >= 0x2)
tmp |= 0x3UL << SCHIZO_PCICTRL_PTO_SHIFT;

prop = of_find_property(pbm->prom_node, "no-bus-parking", NULL);
if (!prop)
if (!of_find_property(pbm->prom_node, "no-bus-parking", NULL))
tmp |= SCHIZO_PCICTRL_PARK;
else
tmp &= ~SCHIZO_PCICTRL_PARK;
Expand Down

0 comments on commit 098317e

Please sign in to comment.