]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: pciehp: Clean up debug logging
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 15 Jun 2015 21:28:29 +0000 (16:28 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Jun 2015 22:35:28 +0000 (17:35 -0500)
commit3784e0c6b02d4fa0966abb01b74eedeb8cd64603
tree0ee36d5e1e1e62547049c8a540e05e758dd1926e
parenta5dd4b4b0570b3bf880d563969b245dfbd170c1e
PCI: pciehp: Clean up debug logging

The pciehp debug logging is overly verbose and often redundant.  Almost all
of the information printed by dbg_ctrl() is also printed by the normal PCI
core enumeration code and by pcie_init().

Remove the redundant debug info.

When claiming a pciehp bridge, we print the slot characteristics, e.g.,

  Slot #6 AttnBtn- AttnInd- PwrInd- PwrCtrl- MRL- Interlock- NoCompl+ LLActRep+

Add the Hot-Plug Capable and Hot-Plug Surprise bits to this information,
and print it all in the same order as lspci does.

No functional change except the message text changes.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rajat Jain <rajatja@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
drivers/pci/hotplug/pciehp_core.c
drivers/pci/hotplug/pciehp_ctrl.c
drivers/pci/hotplug/pciehp_hpc.c