diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2015-03-10 11:17:39 +0000 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2015-03-10 11:17:39 +0000 |
commit | 74107ac0ce73f8871cd724a3ab36260d6591a64e (patch) | |
tree | 7c8c7ae4509f3a1f80941de14415612a1776dc74 | |
parent | 6af23ec63b3f1680690388ae9bc14dffa0160afe (diff) | |
download | linux-baserock/danielsilverstone/m400-update.tar.gz |
Dump config space during probebaserock/danielsilverstone/m400-update
-rw-r--r-- | drivers/pci/probe.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 8d2f400e96cb..4dd7cdee7e80 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1130,7 +1130,7 @@ int pci_setup_device(struct pci_dev *dev) dev->revision = class & 0xff; dev->class = class >> 8; /* upper 3 bytes */ - dev_printk(KERN_DEBUG, &dev->dev, "[%04x:%04x] type %02x class %#08x\n", + dev_printk(KERN_ERR, &dev->dev, "[%04x:%04x] type %02x class %#08x\n", dev->vendor, dev->device, dev->hdr_type, dev->class); /* need to have dev->class ready */ @@ -1463,7 +1463,16 @@ static struct pci_dev *pci_scan_device(struct pci_bus *bus, int devfn) if (!pci_bus_read_dev_vendor_id(bus, devfn, &l, 60*1000)) return NULL; - + printk(KERN_ERR "*****************"); + printk(KERN_ERR "Processing bus %p devfn %d\n", bus, devfn); + { + int loc; + for (loc = 0; loc < 0x40; loc += 4) { + pci_bus_read_config_dword(bus, devfn, loc, &l); + printk(KERN_ERR "%02x: %08x\n", loc, l); + } + } + printk(KERN_ERR "*****************"); dev = pci_alloc_dev(bus); if (!dev) return NULL; |