Re: [bisected][resend] pnp: Huge number of "io resource overlap"messages

From: Rene Herman
Date: Tue Sep 09 2008 - 14:28:38 EST


On 09-09-08 19:40, Bjorn Helgaas wrote:

If the PCI device isn't fully initialized, it doesn't seem right to
check it for resource conflicts. But I don't know how to tell that.

His pci_resource_start() values are 0. How about just checking for that?

Rene. diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c
index 0bdf9b8..d0120a5 100644
--- a/drivers/pnp/quirks.c
+++ b/drivers/pnp/quirks.c
@@ -253,6 +253,9 @@ static void quirk_system_pci_resources(struct pnp_dev *dev)
continue;

pci_start = pci_resource_start(pdev, i);
+ if (!pci_start)
+ continue;
+
pci_end = pci_resource_end(pdev, i);
for (j = 0;
(res = pnp_get_resource(dev, type, j)); j++) {