Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38351
b: refs/heads/master
c: 9bded00
h: refs/heads/master
i:
  38349: 308f816
  38347: 7e6f7cc
  38343: 90872c4
  38335: 0a931bb
v: v3
  • Loading branch information
Kenji Kaneshige authored and Linus Torvalds committed Oct 4, 2006
1 parent da8cc3d commit 53c5f1f
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 18e39913d41ca4d63e9e94a2ad25b5ea31caaa7f
refs/heads/master: 9bded00bf62090ebc9d6e8be640cdb69e8497db6
10 changes: 5 additions & 5 deletions trunk/drivers/pci/setup-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ pbus_assign_resources_sorted(struct pci_bus *bus)
list_for_each_entry(dev, &bus->devices, bus_list) {
u16 class = dev->class >> 8;

/* Don't touch classless devices or host bridges. */
/* Don't touch classless devices or host bridges or ioapics. */
if (class == PCI_CLASS_NOT_DEFINED ||
class == PCI_CLASS_BRIDGE_HOST)
continue;

/* Don't touch ioapics if it has the assigned resources. */
/* Don't touch ioapic devices already enabled by firmware */
if (class == PCI_CLASS_SYSTEM_PIC) {
res = &dev->resource[0];
if (res[0].start || res[1].start || res[2].start ||
res[3].start || res[4].start || res[5].start)
u16 command;
pci_read_config_word(dev, PCI_COMMAND, &command);
if (command & (PCI_COMMAND_IO | PCI_COMMAND_MEMORY))
continue;
}

Expand Down

0 comments on commit 53c5f1f

Please sign in to comment.