提交 c1f3f281 编写于 作者: B Bjorn Helgaas 提交者: Len Brown

PNP: log PNP resources, as we do for PCI

ACPI devices are often involved in address space conflicts with PCI devices,
so I think it's worth logging the resources they use.  Otherwise we have to
depend on lspnp or groping around in sysfs to find them.
Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 899611ee
...@@ -194,8 +194,9 @@ int pnp_add_device(struct pnp_dev *dev) ...@@ -194,8 +194,9 @@ int pnp_add_device(struct pnp_dev *dev)
for (id = dev->id; id; id = id->next) for (id = dev->id; id; id = id->next)
len += scnprintf(buf + len, sizeof(buf) - len, " %s", id->id); len += scnprintf(buf + len, sizeof(buf) - len, " %s", id->id);
pnp_dbg(&dev->dev, "%s device, IDs%s (%s)\n", dev_printk(KERN_DEBUG, &dev->dev, "%s device, IDs%s (%s)\n",
dev->protocol->name, buf, dev->active ? "active" : "disabled"); dev->protocol->name, buf,
dev->active ? "active" : "disabled");
return 0; return 0;
} }
......
...@@ -523,7 +523,7 @@ struct pnp_resource *pnp_add_irq_resource(struct pnp_dev *dev, int irq, ...@@ -523,7 +523,7 @@ struct pnp_resource *pnp_add_irq_resource(struct pnp_dev *dev, int irq,
res->start = irq; res->start = irq;
res->end = irq; res->end = irq;
pnp_dbg(&dev->dev, " add %pr\n", res); dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
return pnp_res; return pnp_res;
} }
...@@ -544,7 +544,7 @@ struct pnp_resource *pnp_add_dma_resource(struct pnp_dev *dev, int dma, ...@@ -544,7 +544,7 @@ struct pnp_resource *pnp_add_dma_resource(struct pnp_dev *dev, int dma,
res->start = dma; res->start = dma;
res->end = dma; res->end = dma;
pnp_dbg(&dev->dev, " add %pr\n", res); dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
return pnp_res; return pnp_res;
} }
...@@ -568,7 +568,7 @@ struct pnp_resource *pnp_add_io_resource(struct pnp_dev *dev, ...@@ -568,7 +568,7 @@ struct pnp_resource *pnp_add_io_resource(struct pnp_dev *dev,
res->start = start; res->start = start;
res->end = end; res->end = end;
pnp_dbg(&dev->dev, " add %pr\n", res); dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
return pnp_res; return pnp_res;
} }
...@@ -592,7 +592,7 @@ struct pnp_resource *pnp_add_mem_resource(struct pnp_dev *dev, ...@@ -592,7 +592,7 @@ struct pnp_resource *pnp_add_mem_resource(struct pnp_dev *dev,
res->start = start; res->start = start;
res->end = end; res->end = end;
pnp_dbg(&dev->dev, " add %pr\n", res); dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
return pnp_res; return pnp_res;
} }
...@@ -616,7 +616,7 @@ struct pnp_resource *pnp_add_bus_resource(struct pnp_dev *dev, ...@@ -616,7 +616,7 @@ struct pnp_resource *pnp_add_bus_resource(struct pnp_dev *dev,
res->start = start; res->start = start;
res->end = end; res->end = end;
pnp_dbg(&dev->dev, " add %pr\n", res); dev_printk(KERN_DEBUG, &dev->dev, "%pR\n", res);
return pnp_res; return pnp_res;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册