Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142740
b: refs/heads/master
c: e143858
h: refs/heads/master
v: v3
  • Loading branch information
Mike Miller authored and Jens Axboe committed Apr 7, 2009
1 parent fb73377 commit 8b7309b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 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: 0a9279cc7cbe726e995c44a1acae81d446775816
refs/heads/master: e143858104e318263689c551543dfc3f186cea12
19 changes: 14 additions & 5 deletions trunk/drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -3265,12 +3265,21 @@ static int __devinit cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev)
*/
cciss_interrupt_mode(c, pdev, board_id);

/*
* Memory base addr is first addr , the second points to the config
* table
*/
/* find the memory BAR */
for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) {
if (pci_resource_flags(pdev, i) & IORESOURCE_MEM)
break;
}
if (i == DEVICE_COUNT_RESOURCE) {
printk(KERN_WARNING "cciss: No memory BAR found\n");
err = -ENODEV;
goto err_out_free_res;
}

c->paddr = pci_resource_start(pdev, i); /* addressing mode bits
* already removed
*/

c->paddr = pci_resource_start(pdev, 0); /* addressing mode bits already removed */
#ifdef CCISS_DEBUG
printk("address 0 = %lx\n", c->paddr);
#endif /* CCISS_DEBUG */
Expand Down

0 comments on commit 8b7309b

Please sign in to comment.