diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 14:59:52 -0400 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 14:59:52 -0400 | 
| commit | e9f29c9a56ca06d0effa557823a737cbe7ec09f7 (patch) | |
| tree | c331c4aa741a8f384ee13d0b08bd340c23164b16 /arch/x86/pci/mmconfig-shared.c | |
| parent | 800416f799e0723635ac2d720ad4449917a1481c (diff) | |
| parent | 1af3c2e45e7a641e774bbb84fa428f2f0bf2d9c9 (diff) | |
Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6
* 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: (27 commits)
  x86: allocate space within a region top-down
  x86: update iomem_resource end based on CPU physical address capabilities
  x86/PCI: allocate space from the end of a region, not the beginning
  PCI: allocate bus resources from the top down
  resources: support allocating space within a region from the top down
  resources: handle overflow when aligning start of available area
  resources: ensure callback doesn't allocate outside available space
  resources: factor out resource_clip() to simplify find_resource()
  resources: add a default alignf to simplify find_resource()
  x86/PCI: MMCONFIG: fix region end calculation
  PCI: Add support for polling PME state on suspended legacy PCI devices
  PCI: Export some PCI PM functionality
  PCI: fix message typo
  PCI: log vendor/device ID always
  PCI: update Intel chipset names and defines
  PCI: use new ccflags variable in Makefile
  PCI: add PCI_MSIX_TABLE/PBA defines
  PCI: add PCI vendor id for STmicroelectronics
  x86/PCI: irq and pci_ids patch for Intel Patsburg DeviceIDs
  PCI: OLPC: Only enable PCI configuration type override on XO-1
  ...
Diffstat (limited to 'arch/x86/pci/mmconfig-shared.c')
| -rw-r--r-- | arch/x86/pci/mmconfig-shared.c | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c index a918553ebc75..e282886616a0 100644 --- a/arch/x86/pci/mmconfig-shared.c +++ b/arch/x86/pci/mmconfig-shared.c | |||
| @@ -65,7 +65,6 @@ static __init struct pci_mmcfg_region *pci_mmconfig_add(int segment, int start, | |||
| 65 | int end, u64 addr) | 65 | int end, u64 addr) | 
| 66 | { | 66 | { | 
| 67 | struct pci_mmcfg_region *new; | 67 | struct pci_mmcfg_region *new; | 
| 68 | int num_buses; | ||
| 69 | struct resource *res; | 68 | struct resource *res; | 
| 70 | 69 | ||
| 71 | if (addr == 0) | 70 | if (addr == 0) | 
| @@ -82,10 +81,9 @@ static __init struct pci_mmcfg_region *pci_mmconfig_add(int segment, int start, | |||
| 82 | 81 | ||
| 83 | list_add_sorted(new); | 82 | list_add_sorted(new); | 
| 84 | 83 | ||
| 85 | num_buses = end - start + 1; | ||
| 86 | res = &new->res; | 84 | res = &new->res; | 
| 87 | res->start = addr + PCI_MMCFG_BUS_OFFSET(start); | 85 | res->start = addr + PCI_MMCFG_BUS_OFFSET(start); | 
| 88 | res->end = addr + PCI_MMCFG_BUS_OFFSET(num_buses) - 1; | 86 | res->end = addr + PCI_MMCFG_BUS_OFFSET(end + 1) - 1; | 
| 89 | res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; | 87 | res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; | 
| 90 | snprintf(new->name, PCI_MMCFG_RESOURCE_NAME_LEN, | 88 | snprintf(new->name, PCI_MMCFG_RESOURCE_NAME_LEN, | 
| 91 | "PCI MMCONFIG %04x [bus %02x-%02x]", segment, start, end); | 89 | "PCI MMCONFIG %04x [bus %02x-%02x]", segment, start, end); | 
