Skip to content

Commit 4b34fe1

Browse files
Bjorn Helgaastorvalds
authored andcommitted
PNP: mark resources that conflict with PCI devices "disabled"
Both the PNP/PCI conflict detection quirk and the PNP system driver must use the same mechanism to mark resources as disabled. I think it's best to keep the resource and to keep the type bit (IORESOURCE_MEM, etc), so that we match the list from firmware as closely as possible. Fixes this regression from 2.6.25: http://lkml.org/lkml/2008/6/1/82 Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Tested-by: Avuton Olrich <avuton@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c3b25b3 commit 4b34fe1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/pnp/quirks.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static void quirk_system_pci_resources(struct pnp_dev *dev)
286286
pci_name(pdev), i,
287287
(unsigned long long) pci_start,
288288
(unsigned long long) pci_end);
289-
res->flags = 0;
289+
res->flags |= IORESOURCE_DISABLED;
290290
}
291291
}
292292
}

‎drivers/pnp/system.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static void reserve_resources_of_dev(struct pnp_dev *dev)
8181
}
8282

8383
for (i = 0; (res = pnp_get_resource(dev, IORESOURCE_MEM, i)); i++) {
84-
if (res->flags & IORESOURCE_UNSET)
84+
if (res->flags & IORESOURCE_DISABLED)
8585
continue;
8686

8787
reserve_range(dev, res->start, res->end, 0);

0 commit comments

Comments
 (0)