PCI: Expand Enhanced Allocation BAR output
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 29 Oct 2015 22:35:40 +0000 (17:35 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 29 Oct 2015 22:35:40 +0000 (17:35 -0500)
commit597becb4adb7d57b8e9d857a68f764ce96a141b8
tree6ba5133f7d4c9be8b9ec7cfbb6bd48653d093a78
parent26635112d4d057c9ea38f6284423a30a41a09240
PCI: Expand Enhanced Allocation BAR output

An Enhanced Allocation Capability entry with BEI 0 fills in
dev->resource[0] just like a real BAR 0 would, but non-EA experts might not
connect "EA - BEI 0" with BAR 0.

Decode the EA jargon a little bit, e.g., change this:

  pci 0002:01:00.0: EA - BEI  0, Prop 0x00: [mem 0x84300000-0x84303fff]

to this:

  pci 0002:01:00.0: BAR 0: [mem 0x84300000-0x84303fff] (from Enhanced Allocation, properties 0x00)

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c