Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21423
b: refs/heads/master
c: 221b2fb
h: refs/heads/master
i:
  21421: 081feed
  21419: dceaffa
  21415: f71b0c7
  21407: bcdc1b9
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 5626c91 commit 5f9c22c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 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: 6241e5cc6afe2c5b75b51e1c890df18f05838cf6
refs/heads/master: 221b2fb818c307e1cb47e036a1671ca554d9cd0a
20 changes: 5 additions & 15 deletions trunk/arch/sparc64/kernel/pci_sun4v.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,9 @@ static void pci_sun4v_resource_adjust(struct pci_dev *pdev,
*/
static void pci_sun4v_determine_mem_io_space(struct pci_pbm_info *pbm)
{
int i, saw_cfg, saw_mem, saw_io;
int i, saw_mem, saw_io;

saw_cfg = saw_mem = saw_io = 0;
saw_mem = saw_io = 0;
for (i = 0; i < pbm->num_pbm_ranges; i++) {
struct linux_prom_pci_ranges *pr = &pbm->pbm_ranges[i];
unsigned long a;
Expand All @@ -652,12 +652,6 @@ static void pci_sun4v_determine_mem_io_space(struct pci_pbm_info *pbm)
((unsigned long)pr->parent_phys_lo << 0UL));

switch (type) {
case 0:
/* PCI config space, 16MB */
pbm->config_space = a;
saw_cfg = 1;
break;

case 1:
/* 16-bit IO space, 16MB */
pbm->io_space.start = a;
Expand All @@ -679,19 +673,15 @@ static void pci_sun4v_determine_mem_io_space(struct pci_pbm_info *pbm)
};
}

if (!saw_cfg || !saw_io || !saw_mem) {
if (!saw_io || !saw_mem) {
prom_printf("%s: Fatal error, missing %s PBM range.\n",
pbm->name,
((!saw_cfg ?
"CFG" :
(!saw_io ?
"IO" : "MEM"))));
(!saw_io ? "IO" : "MEM"));
prom_halt();
}

printk("%s: PCI CFG[%lx] IO[%lx] MEM[%lx]\n",
printk("%s: PCI IO[%lx] MEM[%lx]\n",
pbm->name,
pbm->config_space,
pbm->io_space.start,
pbm->mem_space.start);
}
Expand Down

0 comments on commit 5f9c22c

Please sign in to comment.