History

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: x86/pci: fix mmconfig detection with 32bit near 4g PCI: use fixed-up device class when configuring device

Linus Torvalds committed 17 years ago

Commit ccc0d382 parents f07502d 75e613c2 files · +5 −3Browse files

Unified · Split

2 files
  1. arch/x86/pci/mmconfig-shared.c +3 −3
  2. drivers/pci/probe.c +2 −0
arch/x86/pci/mmconfig-shared.c+3−3
@@ -375,7 +375,7 @@ static acpi_status __init check_mcfg_resource(struct acpi_resource *res, · 374 unmodified lines
375375 if (!fixmem32)
376376 return AE_OK;
377377 if ((mcfg_res->start >= fixmem32->address) &&
378− (mcfg_res->end <= (fixmem32->address +
378+ (mcfg_res->end < (fixmem32->address +
379379 fixmem32->address_length))) {
380380 mcfg_res->flags = 1;
381381 return AE_CTRL_TERMINATE;
@@ -392,7 +392,7 @@ static acpi_status __init check_mcfg_resource(struct acpi_resource *res, · 10 unmodified lines
392392 return AE_OK;
393393
394394 if ((mcfg_res->start >= address.minimum) &&
395− (mcfg_res->end <= (address.minimum + address.address_length))) {
395+ (mcfg_res->end < (address.minimum + address.address_length))) {
396396 mcfg_res->flags = 1;
397397 return AE_CTRL_TERMINATE;
398398 }
@@ -418,7 +418,7 @@ static int __init is_acpi_reserved(u64 start, u64 end, unsigned not_used) · 19 unmodified lines
418418 struct resource mcfg_res;
419419
420420 mcfg_res.start = start;
421− mcfg_res.end = end;
421+ mcfg_res.end = end - 1;
422422 mcfg_res.flags = 0;
423423
424424 acpi_get_devices("PNP0C01", find_mboard_resource, &mcfg_res, NULL);
drivers/pci/probe.c+2−0
@@ -745,6 +745,8 @@ int pci_setup_device(struct pci_dev *dev) · 744 unmodified lines
745745
746746 /* Early fixups, before probing the BARs */
747747 pci_fixup_device(pci_fixup_early, dev);
748+ /* device class may be changed after fixup */
749+ class = dev->class >> 8;
748750
749751 switch (dev->hdr_type) { /* header type */
750752 case PCI_HEADER_TYPE_NORMAL: /* standard header */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t