]> git.karo-electronics.de Git - linux-beck.git/commit
PCI: iproc: Improve link detection logic
authorRay Jui <rjui@broadcom.com>
Wed, 16 Sep 2015 00:39:19 +0000 (17:39 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 25 Sep 2015 23:19:40 +0000 (18:19 -0500)
commitaaf22ab4e916afa68a2e1aed4e913b76cbd58276
treea8919fe24159c70010e73b7178bb23bd92438cac
parent199ff14100095d52cd1b232cc0f3b12f348b5b07
PCI: iproc: Improve link detection logic

Improve the link detection logic by explicitly querying the link status
register to ensure link is active.

Also force class to PCI_CLASS_BRIDGE_PCI (0x0604) through the host
configuration space register.

Signed-off-by: Ray Jui <rjui@broadcom.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
drivers/pci/host/pcie-iproc.c