Skip to content

Commit b7360f6

Browse files
seehearfeelbjorn-helgaas
authored andcommitted
PCI: Announce device after early fixups
Announce the device, e.g., pci 0000:00:00.0: [8086:5910] type 00 class 0x060000 after running early fixups, so the log message reflects any device type or class code fixups. [bhelgaas: commit log] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 99b50be commit b7360f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/pci/probe.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,9 +1802,6 @@ int pci_setup_device(struct pci_dev *dev)
18021802
dev->revision = class & 0xff;
18031803
dev->class = class >> 8; /* upper 3 bytes */
18041804

1805-
pci_info(dev, "[%04x:%04x] type %02x class %#08x\n",
1806-
dev->vendor, dev->device, dev->hdr_type, dev->class);
1807-
18081805
if (pci_early_dump)
18091806
early_dump_pci_device(dev);
18101807

@@ -1822,6 +1819,9 @@ int pci_setup_device(struct pci_dev *dev)
18221819
/* Early fixups, before probing the BARs */
18231820
pci_fixup_device(pci_fixup_early, dev);
18241821

1822+
pci_info(dev, "[%04x:%04x] type %02x class %#08x\n",
1823+
dev->vendor, dev->device, dev->hdr_type, dev->class);
1824+
18251825
/* Device class may be changed after fixup */
18261826
class = dev->class >> 8;
18271827

0 commit comments

Comments
 (0)