Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5691
b: refs/heads/master
c: cf7bee5
h: refs/heads/master
i:
  5689: fb7017a
  5687: eef9c80
v: v3
  • Loading branch information
Ivan Kokshaysky authored and Linus Torvalds committed Aug 7, 2005
1 parent 45607cd commit 6c76177
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 0d317fb72fe3cf0f611608cf3a3015bbe6cd2a66
refs/heads/master: cf7bee5a0bf270a4eace0be39329d6ac0136cc47
7 changes: 6 additions & 1 deletion trunk/drivers/pci/setup-res.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ pci_update_resource(struct pci_dev *dev, struct resource *res, int resno)
u32 new, check, mask;
int reg;

/* Ignore resources for unimplemented BARs and unused resource slots
for 64 bit BARs. */
if (!res->flags)
return;

pcibios_resource_to_bus(dev, &region, res);

pr_debug(" got res [%lx:%lx] bus [%lx:%lx] flags %lx for "
Expand Down Expand Up @@ -67,7 +72,7 @@ pci_update_resource(struct pci_dev *dev, struct resource *res, int resno)

if ((new & (PCI_BASE_ADDRESS_SPACE|PCI_BASE_ADDRESS_MEM_TYPE_MASK)) ==
(PCI_BASE_ADDRESS_SPACE_MEMORY|PCI_BASE_ADDRESS_MEM_TYPE_64)) {
new = 0; /* currently everyone zeros the high address */
new = region.start >> 16 >> 16;
pci_write_config_dword(dev, reg + 4, new);
pci_read_config_dword(dev, reg + 4, &check);
if (check != new) {
Expand Down

0 comments on commit 6c76177

Please sign in to comment.